From 05e3c435c39c5b091a8c31e8ab233297e6efd0a1 Mon Sep 17 00:00:00 2001 From: nokonoko Date: Thu, 24 Jun 2021 00:15:03 +0200 Subject: [PATCH] remove examples --- templates/nginx_confs/A.Y-HTTP-Redir | 5 --- templates/nginx_confs/A.Y.conf | 15 ------- templates/nginx_confs/X.Y-HTTP-Redir | 5 --- templates/nginx_confs/X.Y.conf | 37 ----------------- templates/nginx_confs/nginx.conf | 61 ---------------------------- 5 files changed, 123 deletions(-) delete mode 100644 templates/nginx_confs/A.Y-HTTP-Redir delete mode 100644 templates/nginx_confs/A.Y.conf delete mode 100644 templates/nginx_confs/X.Y-HTTP-Redir delete mode 100644 templates/nginx_confs/X.Y.conf delete mode 100644 templates/nginx_confs/nginx.conf diff --git a/templates/nginx_confs/A.Y-HTTP-Redir b/templates/nginx_confs/A.Y-HTTP-Redir deleted file mode 100644 index 1181763..0000000 --- a/templates/nginx_confs/A.Y-HTTP-Redir +++ /dev/null @@ -1,5 +0,0 @@ -server { -listen 80; -server_name A.Y www.A.Y; -return 301 https://A.Y$request_uri; -} \ No newline at end of file diff --git a/templates/nginx_confs/A.Y.conf b/templates/nginx_confs/A.Y.conf deleted file mode 100644 index 7f73d4a..0000000 --- a/templates/nginx_confs/A.Y.conf +++ /dev/null @@ -1,15 +0,0 @@ -server{ -listen 443 ssl; -server_name A.Y www.A.Y; -ssl on; -ssl_certificate /etc/letsencrypt/live/A.Y/fullchain.pem; -ssl_certificate_key /etc/letsencrypt/live/A.Y/privkey.pem; -ssl_protocols TLSv1.2 TLSv1.3; -ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH'; -ssl_ecdh_curve secp384r1; - -root /var/www/uguu/files/; -autoindex off; -access_log off; -index index.html; -} \ No newline at end of file diff --git a/templates/nginx_confs/X.Y-HTTP-Redir b/templates/nginx_confs/X.Y-HTTP-Redir deleted file mode 100644 index b1aa6dc..0000000 --- a/templates/nginx_confs/X.Y-HTTP-Redir +++ /dev/null @@ -1,5 +0,0 @@ -server { -listen 80; -server_name X.Y www.X.Y; -return 301 https://X.Y$request_uri; -} \ No newline at end of file diff --git a/templates/nginx_confs/X.Y.conf b/templates/nginx_confs/X.Y.conf deleted file mode 100644 index 3160d26..0000000 --- a/templates/nginx_confs/X.Y.conf +++ /dev/null @@ -1,37 +0,0 @@ -server{ -listen 443 ssl http2; -server_name www.X.Y X.Y; -ssl on; -ssl_certificate /etc/letsencrypt/live/X.Y/fullchain.pem; -ssl_certificate_key /etc/letsencrypt/live/X.Y/privkey.pem; -ssl_protocols TLSv1.2 TLSv1.3; -ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH'; -ssl_ecdh_curve secp384r1; - -root /var/www/uguu/dist/; -autoindex off; -access_log off; -index index.html index.php; -etag on; - -location ~* \.(css|js|jpg|jpeg|gif|png|ico|xml|eot|woff|woff2|ttf|svg|otf|x-icon|avif|webp|apng|min.js|min.css)$ { -add_header Cache-Control "public"; -expires 30d; -} - - gzip on; - gzip_min_length 1000; - gzip_comp_level 6; - gzip_proxied any; - gzip_types text/css text/js text/javascript application/javascript application/x-javascript; - -location ~* \.php$ { -fastcgi_pass unix:/var/run/php/php7.3-fpm.sock; -fastcgi_intercept_errors on; -fastcgi_index index.php; -fastcgi_split_path_info ^(.+\.php)(.*)$; -include fastcgi_params; -fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; -} - -} diff --git a/templates/nginx_confs/nginx.conf b/templates/nginx_confs/nginx.conf deleted file mode 100644 index c2bbda3..0000000 --- a/templates/nginx_confs/nginx.conf +++ /dev/null @@ -1,61 +0,0 @@ -user www-data; -worker_processes auto; -pid /run/nginx.pid; -include /etc/nginx/modules-enabled/*.conf; - -events { - worker_connections 4096; - multi_accept on; - use epoll; - -} - -http { - -## -# Basic Settings -## - -sendfile on; -tcp_nopush on; -tcp_nodelay on; -keepalive_timeout 10; -types_hash_max_size 2048; -server_tokens off; -client_max_body_size 128m; - -## -# Mime Settings -## - -include /etc/nginx/mime.types; -default_type application/octet-stream; - -## -# Logging Settings -## - -#access_log /var/log/nginx/access.log; -#error_log /var/log/nginx/error.log; -error_log off; -access_log off; - -## -# Gzip Settings -## - -#gzip off; -#gzip_vary on; -#gzip_proxied any; -#gzip_comp_level 6; -#gzip_buffers 16 8k; -#gzip_http_version 1.1; -#gzip_types application/javascript application/rss+xml application/vnd.ms-fontobject application/x-font application/x-font-opentype application/x-font-otf application/x-font-truetype application/x-font-ttf application/x-javascript application/xhtml+xml application/xml font/opentype font/otf font/ttf image/svg+xml image/x-icon text/css text/javascript text/xml; - -## -# Virtual Host Configs -## - -include /etc/nginx/conf.d/*.conf; -include /etc/nginx/sites-enabled/*; -}