This commit is contained in:
Primakov Alexandr Alexandrovich 2022-01-11 00:51:42 +03:00
parent 9549b28965
commit f87c278fcd

View File

@ -27,6 +27,8 @@ server {
include "parts/api-multystub.conf"; include "parts/api-multystub.conf";
include /etc/nginx/snippets/ssl-params.conf;
location / { location / {
add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
@ -49,6 +51,8 @@ server {
include "parts/api-multystub.conf"; include "parts/api-multystub.conf";
include /etc/nginx/snippets/ssl-params.conf;
location / { location / {
add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
@ -72,6 +76,8 @@ server {
set $appsRoot "/home/ijl/ijl/apps"; set $appsRoot "/home/ijl/ijl/apps";
root $appsRoot; root $appsRoot;
include /etc/nginx/snippets/ssl-params.conf;
location / { location / {
add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
@ -92,6 +98,8 @@ server {
ssl_certificate_key /etc/letsencrypt/live/inno-js.ru/privkey.pem; ssl_certificate_key /etc/letsencrypt/live/inno-js.ru/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/inno-js.ru/chain.pem; ssl_trusted_certificate /etc/letsencrypt/live/inno-js.ru/chain.pem;
include /etc/nginx/snippets/ssl-params.conf;
location / { location / {
proxy_pass http://admin/; proxy_pass http://admin/;
} }