mirror of
https://gitlab.com/octospacc/Configs.git
synced 2025-06-05 21:59:36 +02:00
[Server] new system JS scripts
This commit is contained in:
@ -2,7 +2,7 @@ map "" $LanLocalhost {
|
||||
default 192.168.1.125;
|
||||
}
|
||||
server {
|
||||
listen 81;
|
||||
listen 82;
|
||||
#location /admin {
|
||||
# proxy_http_version 1.1;
|
||||
# proxy_pass http://10.0.3.106;
|
||||
@ -63,4 +63,13 @@ server {
|
||||
add_header 'Cross-Origin-Opener-Policy' 'same-origin';
|
||||
add_header 'Cross-Origin-Resource-Policy' 'same-site';
|
||||
}
|
||||
|
||||
#location /pict.chat/ {
|
||||
# resolver 10.0.3.1 ipv6=off;
|
||||
# proxy_http_version 1.1;
|
||||
# proxy_pass https://pict.chat;
|
||||
# proxy_set_header Host "pict.chat";
|
||||
# proxy_set_header Upgrade $http_upgrade;
|
||||
# proxy_set_header Connection "upgrade";
|
||||
#}
|
||||
}
|
||||
|
@ -6,6 +6,7 @@ server {
|
||||
ssl_certificate_key /etc/letsencrypt/live/private-analytics-not-for-public-use.octt.eu.org/privkey.pem;
|
||||
ssl_prefer_server_ciphers on;
|
||||
location /sitoctt/ {
|
||||
resolver 10.0.3.1;
|
||||
proxy_http_version 1.1;
|
||||
proxy_pass https://sitoctt.goatcounter.com/;
|
||||
proxy_set_header Host "sitoctt.goatcounter.com";
|
||||
@ -16,6 +17,7 @@ server {
|
||||
proxy_set_header Connection "upgrade";
|
||||
}
|
||||
location /octtkb/ {
|
||||
resolver 10.0.3.1;
|
||||
proxy_http_version 1.1;
|
||||
proxy_pass https://octtkb.goatcounter.com/;
|
||||
proxy_set_header Host "octtkb.goatcounter.com";
|
||||
|
@ -1,6 +1,6 @@
|
||||
server {
|
||||
listen 80;
|
||||
rewrite ^ https://$host$request_uri? permanent;
|
||||
#server {
|
||||
# listen 80;
|
||||
# rewrite ^ https://$host$request_uri? permanent;
|
||||
# location / {
|
||||
# #resolver 127.0.0.1;
|
||||
# proxy_http_version 1.1;
|
||||
@ -11,7 +11,7 @@ server {
|
||||
# proxy_set_header X-Forwarded-Proto $scheme;
|
||||
# proxy_set_header Upgrade $http_upgrade;
|
||||
# }
|
||||
}
|
||||
#}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
@ -25,7 +25,33 @@ server {
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
#listen 81;
|
||||
listen 81;
|
||||
error_page 403 = /error.php?code=403;
|
||||
error_page 404 = /error.php?code=404;
|
||||
error_page 500 = /error.php?code=500;
|
||||
access_log /var/log/nginx/root.access.log;
|
||||
error_log /var/log/nginx/root.error.log;
|
||||
location / {
|
||||
root /Main/Server/www/root;
|
||||
if ($request_uri ~ ^([^.\?]*[^/])$) {
|
||||
return 301 $1/;
|
||||
}
|
||||
try_files $uri $uri/ $uri.html =404;
|
||||
autoindex off;
|
||||
location ~ ^.+?\.php(/.*)?$ {
|
||||
fastcgi_pass php;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.*)$;
|
||||
set $path_info $fastcgi_path_info;
|
||||
fastcgi_param PATH_INFO $path_info;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen 81;
|
||||
listen 443 ssl;
|
||||
server_name hlb0.octt.eu.org;
|
||||
ssl_certificate /etc/letsencrypt/live/hlb0.octt.eu.org/fullchain.pem;
|
||||
|
Reference in New Issue
Block a user