You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
783 B
39 lines
783 B
worker_processes auto;
|
|
|
|
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
include /etc/nginx/mime.types;
|
|
default_type application/octet-stream;
|
|
|
|
sendfile on;
|
|
keepalive_timeout 65;
|
|
|
|
upstream pghs_service {
|
|
server pghs:8888;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
|
|
location / {
|
|
root /var/www/pghs.xsquare;
|
|
index index.html;
|
|
}
|
|
|
|
location /pghs {
|
|
proxy_pass http://pghs_service;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
}
|
|
|
|
location /files {
|
|
alias /var/www/pghs.xsquare.files.local;
|
|
autoindex on;
|
|
allow all;
|
|
}
|
|
}
|
|
}
|