You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
389 B
Nginx Configuration File
17 lines
389 B
Nginx Configuration File
4 years ago
|
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;
|
||
|
}
|
||
|
}
|