From 51cf09ac52b0a7c7ee1c5c121602676b550dc872 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 13 Sep 2022 12:40:45 +0000 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=20'nginx/pleroma.stpl'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx/pleroma.stpl | 64 ---------------------------------------------- 1 file changed, 64 deletions(-) delete mode 100644 nginx/pleroma.stpl diff --git a/nginx/pleroma.stpl b/nginx/pleroma.stpl deleted file mode 100644 index 0156e1b..0000000 --- a/nginx/pleroma.stpl +++ /dev/null @@ -1,64 +0,0 @@ -#=======================================================================# -# Default Web Domain Template # -# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS # -#=======================================================================# - - -# this is explicitly IPv4 since Pleroma.Web.Endpoint binds on IPv4 only -# and `localhost.` resolves to [::0] on some systems: see issue #930 -upstream phoenix { - server 127.0.0.1:4004 max_fails=5 fail_timeout=60s; -} - - -server { - listen %ip%:%proxy_ssl_port% ssl http2; - server_name %domain_idn% %alias_idn%; - ssl_certificate %ssl_pem%; - ssl_certificate_key %ssl_key%; - ssl_stapling on; - ssl_stapling_verify on; - error_log /var/log/%web_system%/domains/%domain%.error.log error; - - - keepalive_timeout 70; - sendfile on; - client_max_body_size 80m; - - - gzip_vary on; - gzip_proxied any; - gzip_comp_level 6; - gzip_buffers 16 8k; - gzip_http_version 1.1; - gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript application/activity+json application/atom+xml; - - - ignore_invalid_headers off; - - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - proxy_set_header Host $http_host; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - - location / { - proxy_pass http://phoenix; - } - - location ~ ^/(media|proxy) { - - slice 1m; - proxy_cache_key $host$uri$is_args$args$slice_range; - proxy_set_header Range $slice_range; - proxy_cache_valid 200 206 301 304 1h; - proxy_cache_lock on; - proxy_ignore_client_abort on; - proxy_buffering on; - chunked_transfer_encoding on; - proxy_pass http://phoenix; - } - - include %home%/%user%/conf/web/%domain%/nginx.ssl.conf_*; -} -