Добавил WireGuard и nginx proxy для Flask
This commit is contained in:
parent
c1029f5a6a
commit
6b96d4971a
|
|
@ -17,7 +17,6 @@ services:
|
||||||
web:
|
web:
|
||||||
build: .
|
build: .
|
||||||
container_name: flask-dev
|
container_name: flask-dev
|
||||||
network_mode: "service:wireguard"
|
|
||||||
ports:
|
ports:
|
||||||
- "5205:5205" # Пробрасываем порт наружу
|
- "5205:5205" # Пробрасываем порт наружу
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ server {
|
||||||
ssl_certificate_key /etc/letsencrypt/live/wstkeys.top/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/wstkeys.top/privkey.pem;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://wireguard:5205;
|
proxy_pass http://host.docker.internal:5205;
|
||||||
|
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue