Initial commit
This commit is contained in:
39
nginx/nginx-pghs.conf
Normal file
39
nginx/nginx-pghs.conf
Normal file
@ -0,0 +1,39 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
33
nginx/nginx-xrad.conf
Normal file
33
nginx/nginx-xrad.conf
Normal file
@ -0,0 +1,33 @@
|
||||
worker_processes auto;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
sendfile on;
|
||||
keepalive_timeout 65;
|
||||
|
||||
upstream xrad_service {
|
||||
server xrad:8889;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
location / {
|
||||
root /var/www/xrad.xsquare;
|
||||
index index.html;
|
||||
}
|
||||
|
||||
location /ds {
|
||||
proxy_pass http://xrad_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;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user