add syncthing & files mount
parent
2bbb9253dd
commit
09ceac4706
|
@ -1,4 +1,4 @@
|
||||||
**/htpasswd
|
**/*htpasswd*
|
||||||
docker-fogcutter/airsonic/config
|
docker-fogcutter/airsonic/config
|
||||||
docker-fogcutter/minecraft/data
|
docker-fogcutter/minecraft/data
|
||||||
docker-fogcutter/nginx/config
|
docker-fogcutter/nginx/config
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Assumes pew-net exists
|
# Assumes pew-net exists
|
||||||
|
# Make config dir (as non-root) before launching
|
||||||
|
|
||||||
docker run \
|
docker run \
|
||||||
--name airsonic \
|
--name airsonic \
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Make data dir (as non-root) before launching
|
||||||
|
|
||||||
docker run \
|
docker run \
|
||||||
--name minecraft \
|
--name minecraft \
|
||||||
--detach \
|
--detach \
|
||||||
|
|
|
@ -16,6 +16,10 @@ docker run \
|
||||||
--volume $PWD/config:/config:rw \
|
--volume $PWD/config:/config:rw \
|
||||||
--volume $PWD/nginx.conf:/config/nginx/nginx.conf:ro \
|
--volume $PWD/nginx.conf:/config/nginx/nginx.conf:ro \
|
||||||
--volume $PWD/site-confs:/config/nginx/site-confs:ro \
|
--volume $PWD/site-confs:/config/nginx/site-confs:ro \
|
||||||
|
--volume $PWD/../syncthing/sync:/sync-docker:ro \
|
||||||
|
--volume /bigdata/files:/files-docker:ro \
|
||||||
|
--volume $PWD/syncthing-htpasswd:/config/nginx/syncthing-htpasswd:ro \
|
||||||
|
--volume $PWD/sync-htpasswd:/config/nginx/sync-htpasswd:ro \
|
||||||
--publish 10.42.0.203:80:80 \
|
--publish 10.42.0.203:80:80 \
|
||||||
--publish 10.42.0.203:443:443 \
|
--publish 10.42.0.203:443:443 \
|
||||||
--publish [2601:5c0:c100:6e65:96c6:91ff:feab:69e3]:80:80 \
|
--publish [2601:5c0:c100:6e65:96c6:91ff:feab:69e3]:80:80 \
|
||||||
|
|
|
@ -31,4 +31,28 @@ server {
|
||||||
location / {
|
location / {
|
||||||
proxy_pass https://paulwalko.github.io;
|
proxy_pass https://paulwalko.github.io;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Proxy misc files
|
||||||
|
location /files {
|
||||||
|
alias /files-docker;
|
||||||
|
autoindex on;
|
||||||
|
}
|
||||||
|
|
||||||
|
# Server syncthing files
|
||||||
|
location /sync {
|
||||||
|
auth_basic "nope definitely not today buddy";
|
||||||
|
auth_basic_user_file /config/nginx/sync-htpasswd;
|
||||||
|
alias /sync-docker;
|
||||||
|
autoindex on;
|
||||||
|
}
|
||||||
|
|
||||||
|
# Weechat relay
|
||||||
|
location /weechat {
|
||||||
|
proxy_pass http://172.17.0.1:9001/weechat;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "Upgrade";
|
||||||
|
proxy_read_timeout 604800;
|
||||||
|
proxy_set_header X-RealIP $remote_addr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
|
server_name syncthing.seaturtle.pw;
|
||||||
|
|
||||||
|
return 301 https://syncthing.seaturtle.pw$request_uri;
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 443 ssl;
|
||||||
|
listen [::]:443 ssl;
|
||||||
|
server_name syncthing.seaturtle.pw;
|
||||||
|
|
||||||
|
# ssl conf
|
||||||
|
include /config/nginx/ssl.conf;
|
||||||
|
|
||||||
|
# Proxy syncthing
|
||||||
|
location / {
|
||||||
|
auth_basic "not today buddy";
|
||||||
|
auth_basic_user_file /config/nginx/syncthing-htpasswd;
|
||||||
|
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
proxy_pass http://syncthing:8384;
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Assumes pew-net exists
|
# Assumes pew-net exists
|
||||||
|
# Make config dir (as non-root) before launching
|
||||||
|
|
||||||
docker run \
|
docker run \
|
||||||
--name plex \
|
--name plex \
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Assumes pew-net exists
|
# Assumes pew-net exists
|
||||||
|
# Make config dir (as non-root) before launching
|
||||||
|
|
||||||
docker run \
|
docker run \
|
||||||
--name syncthing \
|
--name syncthing \
|
||||||
|
|
Loading…
Reference in New Issue