Extra pleroma nginx config
This commit is contained in:
parent
854e1db224
commit
a451ac0fbd
|
@ -1023,8 +1023,8 @@ function install_pleroma {
|
|||
echo 'proxy_cache_path /tmp/pleroma-media-cache levels=1:2 keys_zone=pleroma_media_cache:10m max_size=100m inactive=80m use_temp_path=off;';
|
||||
echo '';
|
||||
echo 'server {';
|
||||
echo ' listen 443 ssl;';
|
||||
echo ' #listen [::]:443 ssl;';
|
||||
echo ' listen 443 ssl http2;';
|
||||
echo ' #listen [::]:443 ssl http2;';
|
||||
echo " server_name $PLEROMA_DOMAIN_NAME;";
|
||||
echo ''; } >> "$pleroma_nginx_site"
|
||||
function_check nginx_compress
|
||||
|
@ -1046,6 +1046,14 @@ function install_pleroma {
|
|||
echo " root $PLEROMA_DIR;";
|
||||
echo '';
|
||||
echo ' index index.html;';
|
||||
echo '';
|
||||
echo ' gzip_vary on;';
|
||||
echo ' gzip_proxied any;';
|
||||
echo ' gzip_comp_level 6;';
|
||||
echo ' gzip_buffers 16 8k;';
|
||||
echo ' gzip_http_version 1.1;';
|
||||
echo ' 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;';
|
||||
echo '';
|
||||
echo ' location / {'; } >> "$pleroma_nginx_site"
|
||||
function_check nginx_limits
|
||||
nginx_limits "$PLEROMA_DOMAIN_NAME" '15m'
|
||||
|
@ -1071,7 +1079,7 @@ function install_pleroma {
|
|||
echo '' >> "$pleroma_nginx_site"
|
||||
fi
|
||||
{ echo 'server {';
|
||||
echo " listen 127.0.0.1:$PLEROMA_ONION_PORT default_server;";
|
||||
echo " listen 127.0.0.1:$PLEROMA_ONION_PORT default_server http2;";
|
||||
echo " server_name $PLEROMA_ONION_HOSTNAME;";
|
||||
echo ''; } >> "$pleroma_nginx_site"
|
||||
function_check nginx_compress
|
||||
|
@ -1087,6 +1095,14 @@ function install_pleroma {
|
|||
echo " root $PLEROMA_DIR;";
|
||||
echo '';
|
||||
echo ' index index.html;';
|
||||
echo '';
|
||||
echo ' gzip_vary on;';
|
||||
echo ' gzip_proxied any;';
|
||||
echo ' gzip_comp_level 6;';
|
||||
echo ' gzip_buffers 16 8k;';
|
||||
echo ' gzip_http_version 1.1;';
|
||||
echo ' 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;';
|
||||
echo '';
|
||||
echo ' location / {'; } >> "$pleroma_nginx_site"
|
||||
function_check nginx_limits
|
||||
nginx_limits "$PLEROMA_DOMAIN_NAME" '15m'
|
||||
|
|
Loading…
Reference in New Issue