Auto-Backup $'Sun Jan 26 2025 01:06:41 GMT+0100 (Central European Standard Time)'

This commit is contained in:
2025-01-26 01:44:39 +01:00
parent 126d1d5405
commit da2ef95f83
7 changed files with 98 additions and 31 deletions

View File

@@ -17,6 +17,8 @@ http {
##
# Basic Settings
##
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
sendfile on;
tcp_nopush on;

View File

@@ -10,7 +10,7 @@ server {
location / {
proxy_http_version 1.1;
proxy_buffering off;
proxy_pass http://localhost:30264;
proxy_pass http://127.0.0.1:30264;
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;

View File

@@ -0,0 +1,26 @@
server {
listen 80;
index index.php index.html;
server_name test.octt.eu.org;
root /Main/Server/www/kirby;
default_type text/plain;
add_header X-Content-Type-Options nosniff;
rewrite ^/(content|site|kirby)/(.*)$ /error last;
rewrite ^/\.(?!well-known/) /error last;
rewrite ^/(?!app\.webmanifest)[^/]+$ /index.php last;
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~* \.php$ {
try_files $uri =404;
fastcgi_pass php;
include fastcgi.conf;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SERVER_PORT 80;
}
}

View File

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

View File

@@ -8,32 +8,6 @@ server {
rewrite ^ $scheme://hlb0.octt.eu.org$request_uri? permanent;
}
server {
listen 80;
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;
@@ -56,7 +30,7 @@ server {
if ($request_uri ~ ^([^.\?]*[^/])$) {
return 301 $1/;
}
try_files $uri $uri/ $uri.html =404;
try_files $uri $uri/ $uri.html $uri.json =404;
autoindex off;
#error_page 404 = /404.html;
#rewrite ^/(\?.*)?$ index.html$1 permanent;
@@ -70,6 +44,11 @@ server {
}
}
#location /api/v1/oembed/ {
# proxy_pass http://127.0.0.1:8061/oembed$is_args$args;
# sub_filter '"type":"link",' '"type":"rich","html":"<p>test 123</p>",';
#}
location /Drive/ {
root /Main/Server/www;
autoindex on;