Add syncthing with music
This commit is contained in:
parent
addbdc80eb
commit
97791e8c85
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -1 +1,3 @@
|
|||||||
ovh.ini filter=git-crypt diff=git-crypt
|
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
23
README.md
Normal 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
|
||||||
|
|
||||||
|
|
||||||
@ -76,5 +76,23 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 6881:6881
|
- 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:
|
volumes:
|
||||||
money-data:
|
money-data:
|
||||||
|
|||||||
40
swag/nginx/proxy-confs/syncthing.subdomain.conf
Normal file
40
swag/nginx/proxy-confs/syncthing.subdomain.conf
Normal 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
BIN
syncthing/cert.pem
Normal file
Binary file not shown.
BIN
syncthing/config.xml
Normal file
BIN
syncthing/config.xml
Normal file
Binary file not shown.
BIN
syncthing/key.pem
Normal file
BIN
syncthing/key.pem
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user