Clean some configs and shit
This commit is contained in:
parent
e92f2679da
commit
0d0e1786d4
2 changed files with 2 additions and 52 deletions
|
@ -9,3 +9,5 @@ gzip_types text/plain text/css text/xml application/json application/java
|
||||||
#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;
|
||||||
|
|
||||||
|
location /robots.txt { alias /var/www/html/robots.txt; }
|
||||||
|
|
|
@ -5,11 +5,6 @@ server {
|
||||||
server_name files.zzls.xyz;
|
server_name files.zzls.xyz;
|
||||||
include configs/general.conf;
|
include configs/general.conf;
|
||||||
include configs/securityheaders.conf;
|
include configs/securityheaders.conf;
|
||||||
#root /var/www/files;
|
|
||||||
#index index.php /_h5ai/public/index.php;
|
|
||||||
if ($http_user_agent ~* (google) ) {
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
if ($http_user_agent ~* (google) ) {
|
if ($http_user_agent ~* (google) ) {
|
||||||
|
@ -19,9 +14,6 @@ server {
|
||||||
root /mnt/blockstorage/files.zzls.xyz;
|
root /mnt/blockstorage/files.zzls.xyz;
|
||||||
index index.html index.php /_h5ai/public/index.php;
|
index index.html index.php /_h5ai/public/index.php;
|
||||||
|
|
||||||
dav_ext_methods PROPFIND OPTIONS;
|
|
||||||
dav_access user:r group:r all:r;
|
|
||||||
|
|
||||||
location ~ [^/]\.php(/|$) {
|
location ~ [^/]\.php(/|$) {
|
||||||
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
||||||
if (!-f $document_root$fastcgi_script_name) {
|
if (!-f $document_root$fastcgi_script_name) {
|
||||||
|
@ -45,50 +37,6 @@ server {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# location / {
|
|
||||||
# root /mnt/blockstorage/wwwfiles;
|
|
||||||
# autoindex on;
|
|
||||||
# autoindex_format xml;
|
|
||||||
# autoindex_exact_size off;
|
|
||||||
# autoindex_localtime on;
|
|
||||||
# xslt_stylesheet /var/www/html/assets/superbindex.xslt;
|
|
||||||
# xslt_string_param color-base00 '#18191A';
|
|
||||||
#
|
|
||||||
# }
|
|
||||||
|
|
||||||
# location /vods {
|
|
||||||
# alias /mnt/blockstorage/Auto-Stream-Recording-Twitch/vods;
|
|
||||||
# autoindex on;
|
|
||||||
# autoindex_format xml;
|
|
||||||
# autoindex_exact_size on;
|
|
||||||
# autoindex_localtime on;
|
|
||||||
# #xslt_stylesheet /var/www/html/assets/superbindex.xslt;
|
|
||||||
# #xslt_string_param color-base00 '#18191A';
|
|
||||||
# # #WebDAV
|
|
||||||
# # auth_basic realm_name;
|
|
||||||
# # auth_basic_user_file /etc/nginx/.passwords.list;
|
|
||||||
# # dav_methods PUT DELETE MKCOL COPY MOVE;
|
|
||||||
# # dav_ext_methods PROPFIND OPTIONS;
|
|
||||||
# # dav_access user:rw group:rw all:r;
|
|
||||||
# }
|
|
||||||
location ~ [^/]\.php(/|$) {
|
|
||||||
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
|
||||||
if (!-f $document_root$fastcgi_script_name) {
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
fastcgi_param HTTP_PROXY "";
|
|
||||||
|
|
||||||
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
|
|
||||||
fastcgi_index index.php;
|
|
||||||
|
|
||||||
include fastcgi_params;
|
|
||||||
|
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
||||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
listen 443 ssl http2; # managed by Certbot
|
listen 443 ssl http2; # managed by Certbot
|
||||||
ssl_certificate /etc/letsencrypt/live/files.zzls.xyz/fullchain.pem; # managed by Certbot
|
ssl_certificate /etc/letsencrypt/live/files.zzls.xyz/fullchain.pem; # managed by Certbot
|
||||||
ssl_certificate_key /etc/letsencrypt/live/files.zzls.xyz/privkey.pem; # managed by Certbot
|
ssl_certificate_key /etc/letsencrypt/live/files.zzls.xyz/privkey.pem; # managed by Certbot
|
||||||
|
|
Loading…
Add table
Reference in a new issue