back to reverse proxy while on wifi
This commit is contained in:
@@ -186,33 +186,33 @@ services:
|
|||||||
# - 0.0.0.0:9162:9162
|
# - 0.0.0.0:9162:9162
|
||||||
# docker run -it --rm -p 9162:9162 --net=host sfudeus/apcupsd_exporter:master_1.19
|
# docker run -it --rm -p 9162:9162 --net=host sfudeus/apcupsd_exporter:master_1.19
|
||||||
|
|
||||||
# reverse-proxy:
|
reverse-proxy:
|
||||||
# image: ghcr.io/linuxserver/swag
|
image: ghcr.io/linuxserver/swag
|
||||||
# container_name: reverse-proxy
|
container_name: reverse-proxy
|
||||||
# restart: unless-stopped
|
restart: unless-stopped
|
||||||
# cap_add:
|
cap_add:
|
||||||
# - NET_ADMIN
|
- NET_ADMIN
|
||||||
# environment:
|
environment:
|
||||||
# - PUID=1000
|
- PUID=1000
|
||||||
# - PGID=1000
|
- PGID=1000
|
||||||
# - TZ=America/Denver
|
- TZ=America/Denver
|
||||||
# - URL=alexmickelson.guru
|
- URL=alexmickelson.guru
|
||||||
# - SUBDOMAINS=wildcard
|
- SUBDOMAINS=wildcard
|
||||||
# - VALIDATION=dns
|
- VALIDATION=dns
|
||||||
# - DNSPLUGIN=cloudflare
|
- DNSPLUGIN=cloudflare
|
||||||
# volumes:
|
volumes:
|
||||||
# - ./nginx.conf:/config/nginx/site-confs/default.conf
|
- ./nginx.conf:/config/nginx/site-confs/default.conf
|
||||||
# - /data/swag:/config
|
- /data/swag:/config
|
||||||
# - /data/cloudflare/cloudflare.ini:/config/dns-conf/cloudflare.ini
|
- /data/cloudflare/cloudflare.ini:/config/dns-conf/cloudflare.ini
|
||||||
# ports:
|
ports:
|
||||||
# # - 0.0.0.0:80:80
|
# - 0.0.0.0:80:80
|
||||||
# # - 0.0.0.0:443:443
|
# - 0.0.0.0:443:443
|
||||||
# - 0.0.0.0:7080:80
|
- 0.0.0.0:7080:80
|
||||||
# - 0.0.0.0:7443:443
|
- 0.0.0.0:7443:443
|
||||||
# extra_hosts:
|
extra_hosts:
|
||||||
# - host.docker.internal:host-gateway
|
- host.docker.internal:host-gateway
|
||||||
# networks:
|
networks:
|
||||||
# - proxy
|
- proxy
|
||||||
|
|
||||||
|
|
||||||
audiobookshelf:
|
audiobookshelf:
|
||||||
|
|||||||
@@ -206,3 +206,21 @@ server {
|
|||||||
proxy_set_header Connection "upgrade";
|
proxy_set_header Connection "upgrade";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
server {
|
||||||
|
listen 443 ssl;
|
||||||
|
listen [::]:443 ssl;
|
||||||
|
server_name home.alexmickelson.guru;
|
||||||
|
location / {
|
||||||
|
proxy_pass http://100.122.128.107:3001;
|
||||||
|
|
||||||
|
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;
|
||||||
|
proxy_set_header X-Forwarded-Protocol $scheme;
|
||||||
|
proxy_set_header X-Forwarded-Host $http_host;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "upgrade";
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user