Add syncthing with music

This commit is contained in:
Florent Guiotte 2022-07-11 14:01:28 +02:00
parent addbdc80eb
commit 97791e8c85
7 changed files with 83 additions and 0 deletions

2
.gitattributes vendored
View File

@ -1 +1,3 @@
ovh.ini filter=git-crypt diff=git-crypt
syncthing/config.xml filter=git-crypt diff=git-crypt
*.pem filter=git-crypt diff=git-crypt

23
README.md Normal file
View File

@ -0,0 +1,23 @@
# Docker
## Dependencies
- `git-crypt`
## Setup
1. Create OVH token : <https://www.ovh.com/auth/api/createToken>
+ `Get *`, `Put *`, ...
2. Paste token in `swag/dns-conf/ovh.ini`
### Services
#### Flood
- Socket: `/config/.local/share/rtorrent/rtorrent.sock`
## Logs
2022-06-29 Created OVH token for 30 days

View File

@ -76,5 +76,23 @@ services:
ports:
- 6881:6881
syncthing:
image: lscr.io/linuxserver/syncthing:latest
container_name: syncthing
hostname: drmanhattan #optional
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Paris
volumes:
- ./syncthing:/config
- /mnt/storage/music/Florent:/music
ports:
#- 8384:8384
- 22000:22000/tcp
- 22000:22000/udp
- 21027:21027/udp
restart: unless-stopped
volumes:
money-data:

View File

@ -0,0 +1,40 @@
## Version 2021/05/18
# make sure that your dns has a cname set for syncthing and that your syncthing container is not using a base url
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name sync.*;
include /config/nginx/ssl.conf;
client_max_body_size 0;
# enable for ldap auth, fill in ldap details in ldap.conf
#include /config/nginx/ldap.conf;
# enable for Authelia
#include /config/nginx/authelia-server.conf;
location / {
# enable the next two lines for http auth
#auth_basic "Restricted";
#auth_basic_user_file /config/nginx/.htpasswd;
# enable the next two lines for ldap auth
#auth_request /auth;
#error_page 401 =200 /ldaplogin;
# enable for Authelia
#include /config/nginx/authelia-location.conf;
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app syncthing;
set $upstream_port 8384;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
}

BIN
syncthing/cert.pem Normal file

Binary file not shown.

BIN
syncthing/config.xml Normal file

Binary file not shown.

BIN
syncthing/key.pem Normal file

Binary file not shown.