diff --git a/.gitattributes b/.gitattributes index 5a147b8..679eefc 100644 --- a/.gitattributes +++ b/.gitattributes @@ -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 diff --git a/README.md b/README.md new file mode 100644 index 0000000..458e1e0 --- /dev/null +++ b/README.md @@ -0,0 +1,23 @@ +# Docker + +## Dependencies + +- `git-crypt` + +## Setup + +1. Create OVH token : + + `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 + + diff --git a/docker-compose.yml b/docker-compose.yml index 89da8ac..88a383b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: diff --git a/swag/nginx/proxy-confs/syncthing.subdomain.conf b/swag/nginx/proxy-confs/syncthing.subdomain.conf new file mode 100644 index 0000000..b9d2c25 --- /dev/null +++ b/swag/nginx/proxy-confs/syncthing.subdomain.conf @@ -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; + + } +} diff --git a/syncthing/cert.pem b/syncthing/cert.pem new file mode 100644 index 0000000..c30cd7d Binary files /dev/null and b/syncthing/cert.pem differ diff --git a/syncthing/config.xml b/syncthing/config.xml new file mode 100644 index 0000000..23c7767 Binary files /dev/null and b/syncthing/config.xml differ diff --git a/syncthing/key.pem b/syncthing/key.pem new file mode 100644 index 0000000..e6b85be Binary files /dev/null and b/syncthing/key.pem differ