Update
This commit is contained in:
parent
472d883710
commit
586456dfa5
|
@ -1,11 +1,11 @@
|
||||||
# gzip
|
# GZIP
|
||||||
gzip on;
|
gzip on;
|
||||||
gzip_vary on;
|
gzip_vary on;
|
||||||
gzip_proxied any;
|
gzip_proxied any;
|
||||||
gzip_comp_level 6;
|
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;
|
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 on;
|
||||||
#brotli_comp_level 6;
|
#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;
|
#brotli_types text/plain text/css text/xml application/json application/javascript application/rss+xml application/atom+xml image/svg+xml;
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
../sites-available/4get.zzls.xyz.conf
|
|
@ -0,0 +1 @@
|
||||||
|
../sites-available/debug.inv.zzls.xyz.conf
|
Loading…
Reference in New Issue