diff --git a/src/freedombone-app-pleroma b/src/freedombone-app-pleroma index 0f474e09..51145a10 100755 --- a/src/freedombone-app-pleroma +++ b/src/freedombone-app-pleroma @@ -1052,9 +1052,12 @@ function install_pleroma { echo ' location / {'; } >> "$pleroma_nginx_site" function_check nginx_limits nginx_limits "$PLEROMA_DOMAIN_NAME" '15m' - { echo ' proxy_http_version 1.1;'; + { echo " add_header 'Access-Control-Allow-Origin' '*';"; + echo ' proxy_http_version 1.1;'; echo " proxy_set_header Upgrade \$http_upgrade;"; echo ' proxy_set_header Connection "upgrade";'; + echo " proxy_set_header Host \$http_host;"; + echo ''; echo " proxy_pass http://localhost:$PLEROMA_PORT;"; echo ' }'; echo ''; @@ -1090,9 +1093,12 @@ function install_pleroma { echo ' location / {'; } >> "$pleroma_nginx_site" function_check nginx_limits nginx_limits "$PLEROMA_DOMAIN_NAME" '15m' - { echo ' proxy_http_version 1.1;'; + { echo " add_header 'Access-Control-Allow-Origin' '*';"; + echo ' proxy_http_version 1.1;'; echo " proxy_set_header Upgrade \$http_upgrade;"; echo ' proxy_set_header Connection "upgrade";'; + echo " proxy_set_header Host \$http_host;"; + echo ''; echo " proxy_pass http://localhost:$PLEROMA_PORT;"; echo ' }'; echo '';