nginx proxy

master
Paul Walko 2019-08-25 15:21:50 -04:00
parent 4597a891d5
commit 54578c9829
6 changed files with 28 additions and 53 deletions

2
.gitignore vendored
View File

@ -3,3 +3,5 @@ docker-fogcutter/airsonic/config
docker-fogcutter/minecraft/data docker-fogcutter/minecraft/data
docker-fogcutter/nginx/config docker-fogcutter/nginx/config
docker-fogcutter/plex/config docker-fogcutter/plex/config
docker-fogcutter/syncthing/config
docker-fogcutter/syncthing/sync

View File

@ -11,5 +11,5 @@ docker run \
--volume /bigdata/media/music:/media/music:ro \ --volume /bigdata/media/music:/media/music:ro \
--volume /bigdata/media/playlists:/media/playlists \ --volume /bigdata/media/playlists:/media/playlists \
--volume /bigdata/media/podcasts:/media/podcasts:ro \ --volume /bigdata/media/podcasts:/media/podcasts:ro \
--publish 10.42.0.203:4040:4040 \ --network pew-net \
linuxserver/airsonic:latest linuxserver/airsonic:latest

View File

@ -8,7 +8,7 @@ docker run \
--env PGID=1000 \ --env PGID=1000 \
--env EMAIL=sysadmin@seaturtle.pw \ --env EMAIL=sysadmin@seaturtle.pw \
--env URL=seaturtle.pw \ --env URL=seaturtle.pw \
--env SUBDOMAINS=birman,donskoy,fogcutter,madone,manx,sphynx,www \ --env SUBDOMAINS=airsonic,manx,plex,syncthing,www \
--env VALIDATION=html \ --env VALIDATION=html \
--env TZ=US/Eastern \ --env TZ=US/Eastern \
--volume $PWD/config:/config:rw \ --volume $PWD/config:/config:rw \
@ -20,4 +20,5 @@ docker run \
--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 \
--publish [2601:5c0:c100:6e65:96c6:91ff:feab:69e3]:443:443 \ --publish [2601:5c0:c100:6e65:96c6:91ff:feab:69e3]:443:443 \
--network pew-net \
linuxserver/letsencrypt:latest linuxserver/letsencrypt:latest

View File

@ -1,50 +0,0 @@
server {
listen 80;
listen [::]:80;
server_name donskoy.seaturtle.pw;
return 301 https://donskoy.seaturtle.pw$request_uri;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name www.seaturtle.pw;
# ssl conf
include /config/nginx/ssl.conf;
return 301 https://seaturtle.pw$request_uri;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name donskoy.seaturtle.pw;
# ssl conf
include /config/nginx/ssl.conf;
client_max_body_size 1M;
# Main site
location / {
proxy_pass http://bitwardenrs:80;
proxy_set_header Host $host;
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;
}
# Notifications
location /notifications/hub {
proxy_pass http://bitwardenrs:3012;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
# Notification negotiation?
location /notifications/hub/negotiate {
proxy_pass http://bitwardenrs:80;
}
}

View File

@ -1,5 +1,8 @@
#!/bin/bash #!/bin/bash
# plex.seaturtle.pw
# proxy port 32400
docker run \ docker run \
--name plex \ --name plex \
--detach \ --detach \
@ -11,5 +14,5 @@ docker run \
--volume /bigdata/media/movies:/media/movies:ro \ --volume /bigdata/media/movies:/media/movies:ro \
--volume /bigdata/media/music:/media/music:ro \ --volume /bigdata/media/music:/media/music:ro \
--volume /media-vtluug:/media/media-vtluug:ro \ --volume /media-vtluug:/media/media-vtluug:ro \
--net host \ --network pew-net \
linuxserver/plex:latest linuxserver/plex:latest

View File

@ -0,0 +1,19 @@
#!/bin/bash
# syncthing.seaturtle.pw
# proxy port 8384
docker run \
--name syncthing \
--detach \
--restart unless-stopped \
--env PUID=1000 \
--env PGID=1000 \
--env TZ=Europe/London \
--env UMASK_SET=022 \
--volume $PWD/config:/config:rw \
--volume $PWD/sync:/sync-docker:rw \
--publish 22000:22000 \
--publish 21027:21027/udp \
--network pew-net \
linuxserver/syncthing:latest