This commit is contained in:
Selfhost Root 2023-08-20 17:16:16 -04:00
parent 472d883710
commit 586456dfa5
5 changed files with 74 additions and 2 deletions

0
.gitignore vendored Normal file
View File

View File

@ -1,11 +1,11 @@
# gzip
# GZIP
gzip on;
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_types text/plain text/css text/xml application/json application/javascript application/rss+xml application/atom+xml image/svg+xml;
# brotli
# BROTLI
#brotli on;
#brotli_comp_level 6;
#brotli_types text/plain text/css text/xml application/json application/javascript application/rss+xml application/atom+xml image/svg+xml;

View File

@ -0,0 +1,70 @@
# CLEARNET
server {
server_name 4get.zzls.xyz;
include configs/general.conf;
root /var/www/4get;
#index index.php;
location @php {
try_files $uri.php $uri/index.php =404;
#fastcgi_param PHP_VALUE open_basedir=$document_root;
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
include fastcgi.conf;
fastcgi_intercept_errors on;
}
location / {
try_files $uri @php;
}
location ~* ^(.*)\.php$ {
return 301 $1;
}
# QUIC
add_header Alt-Svc 'h3=":443";ma=86400';
# CSP + Security Headers
include configs/security.conf;
listen 443 ssl;
listen 443 quic;
http2 on;
include configs/ssl.conf;
}
server {
listen 80;
server_name 4get.zzlsghu6mvvwyy75mvga6gaf4znbp3erk5xwfzedb4gg6qqh2j6rlvid.onion;
root /var/www/4get;
location @php {
try_files $uri.php $uri/index.php =404;
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
include fastcgi.conf;
fastcgi_intercept_errors on;
}
location / {
try_files $uri @php;
}
location ~* ^(.*)\.php$ {
return 301 $1;
}
}
server {
if ($host = 4get.zzls.xyz) {
return 301 https://$host$request_uri;
}
listen 80;
server_name 4get.zzls.xyz;
}

View File

@ -0,0 +1 @@
../sites-available/4get.zzls.xyz.conf

View File

@ -0,0 +1 @@
../sites-available/debug.inv.zzls.xyz.conf