Auto-Backup $'Sun Dec 08 2024 02:27:38 GMT+0100 (Central European Standard Time)'

This commit is contained in:
octospacc 2024-12-08 02:57:49 +01:00
parent 0a6879364e
commit fb59cdd788
3 changed files with 76 additions and 1 deletions

View File

@ -70,6 +70,6 @@ server {
server { # Redirect http to https server { # Redirect http to https
server_name liminalgici.spacc.eu.org; # change this to your fqdn server_name liminalgici.spacc.eu.org; # change this to your fqdn
listen 80; listen 80;
listen [::]:80; #listen [::]:80;
return 301 https://$host$request_uri; return 301 https://$host$request_uri;
} }

View File

@ -0,0 +1,32 @@
server {
listen 80;
listen 443 ssl;
server_name owllang.octt.eu.org;
ssl_certificate /etc/letsencrypt/live/owllang.octt.eu.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/owllang.octt.eu.org/privkey.pem;
ssl_prefer_server_ciphers on;
root /Main/Server/www/owllang/1;
index index.php;
# Pass all requests to index.php
location / {
try_files $uri $uri/ /index.php?$query_string;
}
# PHP-FPM configuration
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass unix:/var/run/php/php8.2-fpm.sock; # Adjust PHP version and socket path as needed
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
access_log /var/log/nginx/owllang.access.log;
error_log /var/log/nginx/owllang.error.log;
# Optional: Restrict file access
location ~ /\.(?!well-known).* {
deny all;
}
}

View File

@ -0,0 +1,43 @@
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 443 ssl;
server_name top1.octt.eu.org;
ssl_certificate /etc/letsencrypt/live/top1.octt.eu.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/top1.octt.eu.org/privkey.pem;
ssl_prefer_server_ciphers on;
access_log /var/log/nginx/webtop.access.log;
error_log /var/log/nginx/webtop.error.log;
location / {
proxy_http_version 1.1;
proxy_pass https://192.168.1.125:50801;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}
location /websockify {
proxy_http_version 1.1;
proxy_pass https://192.168.1.125:50801;
include proxy_params;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}
location /w {
proxy_pass http://127.0.0.1/Misc/Webtop-Ubuntu-KDE-1-Launcher.hta.html;
proxy_set_header Host hlb0.octt.eu.org;
}
}
server {
listen 80;
server_name top1.octt.eu.org;
return 301 https://$host$request_uri;
}