mirror of
https://github.com/pockethost/pockethost.git
synced 2025-06-02 20:26:40 +00:00
54 lines
1.2 KiB
Plaintext
54 lines
1.2 KiB
Plaintext
|
|
server {
|
|
listen 80;
|
|
server_name db.*;
|
|
|
|
access_log /data/nginx/access.log main;
|
|
error_log /data/nginx/error.log;
|
|
|
|
location / {
|
|
# check http://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive
|
|
proxy_set_header Connection '';
|
|
proxy_http_version 1.1;
|
|
proxy_read_timeout 180s;
|
|
|
|
proxy_set_header Host $host;
|
|
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://127.0.0.1:8090;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
server_name www.*;
|
|
|
|
access_log /data/nginx/access.log main;
|
|
error_log /data/nginx/error.log;
|
|
|
|
location / {
|
|
root /data/pockethost_html;
|
|
index index.html index.htm;
|
|
}
|
|
|
|
#error_page 404 /404.html;
|
|
|
|
# redirect server error pages to the static page /50x.html
|
|
#
|
|
error_page 500 502 503 504 /50x.html;
|
|
location = /50x.html {
|
|
root /data/pockethost_html;
|
|
}
|
|
|
|
# deny access to .htaccess files, if Apache's document root
|
|
# concurs with nginx's one
|
|
#
|
|
#location ~ /\.ht {
|
|
# deny all;
|
|
#}
|
|
}
|
|
|