mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
+nginx.conf; update scratchpad
This commit is contained in:
1 parent
6ad41dc2ae
commit
2d5eef8d08
28 files changed
+206
-230
No files matched your search
@@ -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
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user