universal middle ip:port

This commit is contained in:
Primakov Alexandr Alexandrovich 2024-02-19 13:38:28 +03:00
parent fb6d28bb33
commit 041213f4c4

157
443.conf
View File

@ -1,43 +1,4 @@
# server {
# listen 80;
# listen [::]:80;
# server_name ~^(?<subdomain>.+)\.inno-js\.ru$;
# if ($subdomain = "") {
# return 301 https://inno-js.ru$request_uri;
# }
# return 301 https://$subdomain.inno-js.ru$request_uri;
# }
server {
# listen 80;
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name b1.inno-js.ru;
ssl_certificate /etc/letsencrypt/live/inno-js.ru/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/inno-js.ru/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/inno-js.ru/chain.pem;
include "parts/api-multystub.conf";
include /etc/nginx/snippets/ssl-params.conf;
location / {
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://212.193.59.173:8078/;
# proxy_pass http://35.193.122.195/;
}
}
server {
# listen 80;
listen 443 ssl http2;
listen [::]:443 ssl http2;
@ -55,12 +16,10 @@ server {
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://85.143.175.152:10880/;
# proxy_pass http://35.193.122.195/;
}
}
server {
# listen 80;
listen 443 ssl http2;
listen [::]:443 ssl http2;
@ -78,19 +37,15 @@ server {
}
server {
# listen 80;
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name b2.inno-js.ru;
server_name b1.inno-js.ru b2.inno-js.ru mentor.inno-js.ru service.inno-js.ru;
ssl_certificate /etc/letsencrypt/live/inno-js.ru/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/inno-js.ru/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/inno-js.ru/chain.pem;
# ssl_prefer_server_ciphers on;
ssl_verify_client off;
include "parts/api-multystub.conf";
include /etc/nginx/snippets/ssl-params.conf;
@ -100,61 +55,37 @@ server {
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://212.193.59.173:8075/;
proxy_pass http://212.193.59.173:8046/;
# proxy_pass http://212.193.63.122:8079/;
}
}
server {
# listen 80;
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name mentor.inno-js.ru;
ssl_certificate /etc/letsencrypt/live/inno-js.ru-0001/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/inno-js.ru-0001/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/inno-js.ru-0001/chain.pem;
# server {
# # listen 80;
# listen 443 ssl http2;
# listen [::]:443 ssl http2;
# ssl_prefer_server_ciphers on;
ssl_verify_client off;
include "parts/api-multystub.conf";
# server_name service.inno-js.ru;
include /etc/nginx/snippets/ssl-params.conf;
# ssl_certificate /etc/letsencrypt/live/inno-js.ru-0001/fullchain.pem;
# ssl_certificate_key /etc/letsencrypt/live/inno-js.ru-0001/privkey.pem;
# ssl_trusted_certificate /etc/letsencrypt/live/inno-js.ru-0001/chain.pem;
# # ssl_prefer_server_ciphers on;
# ssl_verify_client off;
# include "parts/api-multystub.conf";
location / {
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://212.193.59.173:8077/;
}
}
server {
# listen 80;
listen 443 ssl http2;
listen [::]:443 ssl http2;
# include /etc/nginx/snippets/ssl-params.conf;
server_name service.inno-js.ru;
ssl_certificate /etc/letsencrypt/live/inno-js.ru-0001/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/inno-js.ru-0001/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/inno-js.ru-0001/chain.pem;
# ssl_prefer_server_ciphers on;
ssl_verify_client off;
include "parts/api-multystub.conf";
include /etc/nginx/snippets/ssl-params.conf;
location / {
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://212.193.63.122:8079/;
}
}
# location / {
# 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://212.193.63.122:8079/;
# }
# }
server {
# listen 80;
@ -178,33 +109,6 @@ server {
}
}
server {
# listen 80;
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name old.admin.inno-js.ru;
ssl_certificate /etc/letsencrypt/live/inno-js.ru/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/inno-js.ru/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/inno-js.ru/chain.pem;
include /etc/nginx/snippets/ssl-params.conf;
location / {
proxy_pass http://admin/;
}
}
# server {
# listen 80;
# server_name admin.inno-js.ru;
# location / {
# proxy_pass http://212.193.59.173:3072;
# }
# }
server {
# listen 80;
listen 443 ssl http2;
@ -243,13 +147,6 @@ server {
}
}
# server {
# listen 80;
# index index.html;
# server_name alinakhaff.inno-js.ru;
# root /home/ijl/ijl/apps/alinakhaff;
# }
server {
# listen 80;
listen 443 ssl http2;
@ -282,4 +179,4 @@ server {
# add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
# proxy_pass http://212.193.59.173:8079/;
# }
}
}