mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
17 lines
389 B
Nginx Configuration File
17 lines
389 B
Nginx Configuration File
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;
|
|
}
|
|
} |