mirror of
https://gitlab.com/octospacc/Configs.git
synced 2025-03-13 09:10:14 +01:00
Auto-Backup $'Mon Feb 24 2025 01:43:17 GMT+0100 (Central European Standard Time)'
This commit is contained in:
parent
26f0ed63b5
commit
b8b72f1027
4
Server/Root/Main/Server/Scripts/CleanCache.sh
Executable file
4
Server/Root/Main/Server/Scripts/CleanCache.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
rm -rf /root/.cache /home/*/.cache || true
|
||||
rm -rf /var/log/*.{4,5,6,7,8,9}.* || true
|
31
Server/Root/etc/nginx/sites-available/MagicaEdit.conf
Normal file
31
Server/Root/etc/nginx/sites-available/MagicaEdit.conf
Normal file
@ -0,0 +1,31 @@
|
||||
server {
|
||||
listen 80;
|
||||
listen 443 ssl;
|
||||
server_name MagicaEdit.octt.eu.org;
|
||||
ssl_certificate /etc/letsencrypt/live/magicaedit.octt.eu.org/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/magicaedit.octt.eu.org/privkey.pem;
|
||||
ssl_prefer_server_ciphers on;
|
||||
|
||||
root /Main/Server/www/MagicaEdit;
|
||||
index IDE.html;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /server.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/MagicaEdit.access.log;
|
||||
error_log /var/log/nginx/MagicaEdit.error.log;
|
||||
|
||||
# Optional: Restrict file access
|
||||
location ~ /\.(?!well-known).* {
|
||||
deny all;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user