Added swoole reverse proxy container

This commit is contained in:
Alejandro Celaya
2020-05-02 12:04:42 +02:00
parent 56932e4ea6
commit 6c30fc73ee
2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
server {
listen 80 default_server;
error_log /home/shlink/www/data/infra/nginx/swoole_proxy.error.log;
location / {
proxy_http_version 1.1;
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://shlink_swoole:8080;
proxy_read_timeout 90s;
}
}