+nginx.conf; update scratchpad

This commit is contained in:
undefined committed 2020-07-16 15:18:55 +08:00
1 parent 6ad41dc2ae
commit 2d5eef8d08
28 files changed
+206 -230

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
listen:
port: 8080
hosts:
"*":
paths:
/:
proxy.reverse.url: "http://[unix:/home/hydro/hydro.sock]"
proxy.preserve-host: ON
proxy.websocket: ON
+17
View File
@@ -0,0 +1,17 @@
server {
listen 8080;
server_name localhost;
root /tmp/hydro/public;
location / {
try_files $uri @proxy_to_app;
}
location @proxy_to_app {
proxy_pass http://unix:/home/hydro/hydro.sock;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header X-Forwarded-For $remote_addr;
}
}