forked from Fijxu/etc-configs
Update
This commit is contained in:
parent
472d883710
commit
586456dfa5
5 changed files with 74 additions and 2 deletions
0
.gitignore
vendored
Normal file
0
.gitignore
vendored
Normal 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;
|
||||
|
|
70
nginx/sites-available/4get.zzls.xyz.conf
Normal file
70
nginx/sites-available/4get.zzls.xyz.conf
Normal 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;
|
||||
}
|
1
nginx/sites-enabled/4get.zzls.xyz.conf
Symbolic link
1
nginx/sites-enabled/4get.zzls.xyz.conf
Symbolic link
|
@ -0,0 +1 @@
|
|||
../sites-available/4get.zzls.xyz.conf
|
1
nginx/sites-enabled/debug.inv.zzls.xyz.conf
Symbolic link
1
nginx/sites-enabled/debug.inv.zzls.xyz.conf
Symbolic link
|
@ -0,0 +1 @@
|
|||
../sites-available/debug.inv.zzls.xyz.conf
|
Loading…
Add table
Reference in a new issue