mirror of
https://gitlab.com/octospacc/Configs.git
synced 2025-03-19 12:10:16 +01:00
Auto-Backup $'Sun Dec 08 2024 02:27:38 GMT+0100 (Central European Standard Time)'
This commit is contained in:
parent
0a6879364e
commit
fb59cdd788
@ -70,6 +70,6 @@ server {
|
||||
server { # Redirect http to https
|
||||
server_name liminalgici.spacc.eu.org; # change this to your fqdn
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
#listen [::]:80;
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
32
Server/Root/etc/nginx/sites-available/owllang.conf
Normal file
32
Server/Root/etc/nginx/sites-available/owllang.conf
Normal 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;
|
||||
}
|
||||
}
|
43
Server/Root/etc/nginx/sites-available/webtop.conf
Normal file
43
Server/Root/etc/nginx/sites-available/webtop.conf
Normal 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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user