slash cms

This commit is contained in:
Primakov Alexandr Alexandrovich 2022-05-22 19:43:28 +03:00
parent 1a9a61bf98
commit deedaa8b42
2 changed files with 12 additions and 0 deletions

View File

@ -41,6 +41,10 @@ http {
server 212.193.59.173:8090;
}
upstream cms {
server http://212.193.55.249:8045;
}
# server {
# listen 8080;
# # server_name inno-js.ru;

View File

@ -22,6 +22,14 @@ location /red-coder/ {
proxy_pass http://red_coder/;
}
location /cms/ {
# add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
proxy_pass http://cms/;
}
location /socket.io/ {
proxy_pass http://websocket;