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