diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/nginx/configs/general.conf b/nginx/configs/general.conf index 0dc3ce6..3f4bf81 100644 --- a/nginx/configs/general.conf +++ b/nginx/configs/general.conf @@ -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; diff --git a/nginx/sites-available/4get.zzls.xyz.conf b/nginx/sites-available/4get.zzls.xyz.conf new file mode 100644 index 0000000..b9eee70 --- /dev/null +++ b/nginx/sites-available/4get.zzls.xyz.conf @@ -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; +} diff --git a/nginx/sites-enabled/4get.zzls.xyz.conf b/nginx/sites-enabled/4get.zzls.xyz.conf new file mode 120000 index 0000000..29b50f0 --- /dev/null +++ b/nginx/sites-enabled/4get.zzls.xyz.conf @@ -0,0 +1 @@ +../sites-available/4get.zzls.xyz.conf \ No newline at end of file diff --git a/nginx/sites-enabled/debug.inv.zzls.xyz.conf b/nginx/sites-enabled/debug.inv.zzls.xyz.conf new file mode 120000 index 0000000..f7b4270 --- /dev/null +++ b/nginx/sites-enabled/debug.inv.zzls.xyz.conf @@ -0,0 +1 @@ +../sites-available/debug.inv.zzls.xyz.conf \ No newline at end of file