124 lines
4.0 KiB
Plaintext
124 lines
4.0 KiB
Plaintext
|
server {
|
||
|
# server_name localhost;
|
||
|
listen 127.0.0.1:9191;
|
||
|
root /mnt/gluster01/web/liberta.casa;
|
||
|
}
|
||
|
server {
|
||
|
server_name qzzf2qcfbhievvs5nzkccuwddroipy62qjocqtmgcgh75vd6w57m7yad.onion;
|
||
|
listen 127.0.0.1:9191;
|
||
|
|
||
|
autoindex off;
|
||
|
port_in_redirect off;
|
||
|
|
||
|
location /kiwi/static/config.json {
|
||
|
root /mnt/gluster01/web/liberta.casa;
|
||
|
rewrite ^/kiwi/static/config.json$ /kiwi_onion/static/config.json;
|
||
|
}
|
||
|
|
||
|
location /kiwi {
|
||
|
root /mnt/gluster01/web/liberta.casa;
|
||
|
index index.html;
|
||
|
try_files $uri $uri/ =404;
|
||
|
}
|
||
|
|
||
|
location / {
|
||
|
root /srv/www/liberta.casa/static/website;
|
||
|
index index.html;
|
||
|
|
||
|
}
|
||
|
|
||
|
location /register {
|
||
|
proxy_pass http://127.0.0.1:8965;
|
||
|
add_header Onion-Location http://qzzf2qcfbhievvs5nzkccuwddroipy62qjocqtmgcgh75vd6w57m7yad.onion$request_uri;
|
||
|
}
|
||
|
|
||
|
location /libcasa {
|
||
|
root /srv/www/superseriousstats/libertacasa;
|
||
|
index index.html;
|
||
|
location ~ \.php$ {
|
||
|
fastcgi_pass 172.168.100.1:9100;
|
||
|
include fastcgi_params;
|
||
|
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
location /libcasa.info {
|
||
|
root /srv/www/superseriousstats/libertacasa;
|
||
|
index index.html;
|
||
|
location ~ \.php$ {
|
||
|
fastcgi_pass 172.168.100.1:9100;
|
||
|
include fastcgi_params;
|
||
|
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
location /gamja {
|
||
|
root /srv/www/gamja;
|
||
|
index index.html;
|
||
|
}
|
||
|
|
||
|
location /socket {
|
||
|
proxy_pass http://192.168.0.110:8068;
|
||
|
proxy_read_timeout 600s;
|
||
|
proxy_http_version 1.1;
|
||
|
proxy_set_header Upgrade $http_upgrade;
|
||
|
proxy_set_header Connection "Upgrade";
|
||
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||
|
}
|
||
|
|
||
|
location /convos {
|
||
|
rewrite ^/convos/?(.*)$ /$1 break;
|
||
|
proxy_pass http://[::1]:8089;
|
||
|
proxy_http_version 1.1;
|
||
|
proxy_set_header Upgrade $http_upgrade;
|
||
|
proxy_set_header Connection "upgrade";
|
||
|
proxy_set_header Host $host;
|
||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||
|
proxy_set_header X-Request-Base "$scheme://$host/convos";
|
||
|
}
|
||
|
|
||
|
location /candy {
|
||
|
root /srv/www/candy/;
|
||
|
index index.html;
|
||
|
add_header Access-Control-Allow-Origin *;
|
||
|
}
|
||
|
location /candy-source {
|
||
|
root /srv/www/candy/;
|
||
|
}
|
||
|
|
||
|
|
||
|
error_log /var/log/nginx/liberta.casa.err;
|
||
|
|
||
|
|
||
|
#location / {
|
||
|
# root /srv/www/liberta.casa;
|
||
|
# try_files $uri $uri/ =404;
|
||
|
#}
|
||
|
|
||
|
location /webirc {
|
||
|
proxy_pass http://127.0.0.2:6669;
|
||
|
proxy_http_version 1.1;
|
||
|
proxy_set_header Upgrade $http_upgrade;
|
||
|
proxy_set_header Connection "Upgrade";
|
||
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
#server {
|
||
|
# server_name cr36xbvmgjwnfw4sly4kuc6c3ozhesjre3y5pggq5xdkkmbrq6dz4fad.onion;
|
||
|
# listen 9191;
|
||
|
#
|
||
|
# location /webirc {
|
||
|
# proxy_pass http://127.0.0.2:6668;
|
||
|
# proxy_http_version 1.1;
|
||
|
# proxy_set_header Upgrade $http_upgrade;
|
||
|
# proxy_set_header Connection "Upgrade";
|
||
|
# proxy_set_header X-Forwarded-For $remote_addr;
|
||
|
# proxy_set_header X-Forwarded-Proto $scheme;
|
||
|
# }
|
||
|
#}
|