Initial commit

This commit is contained in:
cracklesparkle
2024-11-25 01:20:02 +00:00
commit 27a4f4153f
12 changed files with 420 additions and 0 deletions

39
nginx/nginx-pghs.conf Normal file
View 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
View 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;
}
}
}