mirror of
https://gitlab.com/octospacc/Configs.git
synced 2025-06-05 21:59:36 +02:00
Auto-Backup $'Thu May 15 2025 00:55:40 GMT+0200 (Central European Summer Time)'
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
set -e
|
||||
rm -rf /root/.cache /home/*/.cache || true
|
||||
rm -rf /var/log/*.{4,5,6,7,8,9}.* || true
|
||||
docker system prune -af
|
||||
if [ "$(id -u)" != 0 ]; then
|
||||
echo "Must run as root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
docker exec -it pihole rm -f /var/log/pihole/pihole.log
|
||||
docker restart pihole
|
||||
|
||||
docker system prune -f
|
||||
|
@@ -99,6 +99,13 @@ server {
|
||||
sub_filter '<head>' '<head><link rel="stylesheet" href="/new/assets/bbs-polyfill.css" />';
|
||||
sub_filter '<noscript>' '<div class="SpaccBBS-Alpha-Header alert alert-warning">La nuova BBS è in fase Alpha. I post precedenti al 22 luglio 2024 potrebbero non essere trasferibili, ma rimarranno disponibili per la lettura su <a href="/old/">/old/</a>.</div><noscript>';
|
||||
sub_filter_once on;
|
||||
#sub_filter '<meta property="og:image" content="https://bbs.spacc.eu.org/new/assets/images/logo@3x.png" />' '';
|
||||
#sub_filter '<meta property="og:image:url" content="https://bbs.spacc.eu.org/new/assets/images/logo@3x.png" />' '';
|
||||
sub_filter '<meta property="og:image" content="https://bbs.spacc.eu.org/new/assets/uploads/system/site-logo.jpeg" />' '';
|
||||
sub_filter '<meta property="og:image:url" content="https://bbs.spacc.eu.org/new/assets/uploads/system/site-logo.jpeg" />' '';
|
||||
sub_filter '<meta property="og:image" content="https://bbs.spacc.eu.org/new/assets/uploads/profile/uid-' '<meta none="';
|
||||
sub_filter '<meta property="og:image:url" content="https://bbs.spacc.eu.org/new/assets/uploads/profile/uid-' '<meta none="';
|
||||
#sub_filter '</head>' '<meta property="og:image" content="https://bbs.spacc.eu.org/new/assets/uploads/system/site-logo.jpeg" /></head>';
|
||||
#sub_filter '<meta property="og:image"' '<meta property="og:image:2"';
|
||||
#sub_filter_once off;
|
||||
|
||||
|
29
Server/Root/etc/nginx/sites-available/WhichNot.conf
Normal file
29
Server/Root/etc/nginx/sites-available/WhichNot.conf
Normal file
@@ -0,0 +1,29 @@
|
||||
server {
|
||||
listen 80;
|
||||
listen 443 ssl;
|
||||
server_name WhichNot.octt.eu.org;
|
||||
ssl_certificate /etc/letsencrypt/live/whichnot.octt.eu.org/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/whichnot.octt.eu.org/privkey.pem;
|
||||
ssl_prefer_server_ciphers on;
|
||||
|
||||
root /Main/Server/www/WhichNot;
|
||||
index index.html;
|
||||
|
||||
#location / {
|
||||
# try_files $uri $uri/; #/server.php?$query_string;
|
||||
#}
|
||||
|
||||
#location ~ \.php$ {
|
||||
# include fastcgi_params;
|
||||
# fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
|
||||
# fastcgi_index index.php;
|
||||
# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
#}
|
||||
|
||||
access_log /var/log/nginx/WhichNot.access.log;
|
||||
error_log /var/log/nginx/WhichNot.error.log;
|
||||
|
||||
#location ~ /\.(?!well-known).* {
|
||||
# deny all;
|
||||
#}
|
||||
}
|
@@ -12,6 +12,7 @@ server {
|
||||
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_NAME /;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root/Proxatore.php;
|
||||
}
|
||||
|
||||
|
@@ -4,17 +4,31 @@ server {
|
||||
server_name test.octt.eu.org;
|
||||
root /Main/Server/www/test;
|
||||
|
||||
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;
|
||||
#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;
|
||||
# try_files $uri $uri/ /index.php$is_args$args;
|
||||
proxy_http_version 1.1;
|
||||
proxy_pass http://192.168.1.125:23680;
|
||||
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 "upgrade";
|
||||
}
|
||||
|
||||
#location /content/images/ {
|
||||
#root /Main/Server/ghost/;
|
||||
#alias /Main/Server/ghost/images/;
|
||||
#}
|
||||
|
||||
rewrite ^/content/images/wordpress/(.+)$ /content/images/$2 permanent;
|
||||
rewrite ^/content/images/size/(w720|w960|w1200)/wordpress/(.+)$ /content/images/$2 permanent;
|
||||
|
||||
location ~* \.php$ {
|
||||
try_files $uri =404;
|
||||
fastcgi_pass php;
|
||||
|
Reference in New Issue
Block a user