fix: omc.conf update
This commit is contained in:
@@ -6,10 +6,10 @@ server {
|
|||||||
index index.html index.htm;
|
index index.html index.htm;
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
# SSL
|
# SSL
|
||||||
#ssl_certificate /usr/local/omc/etc/certs/ca_cert.pem;
|
ssl_certificate /usr/local/omc/etc/certs/ca_cert.pem;
|
||||||
#ssl_certificate_key /usr/local/omc/etc/certs/private_key.pem;
|
ssl_certificate_key /usr/local/omc/etc/certs/private_key.pem;
|
||||||
ssl_certificate /usr/local/omc/etc/certs/tsa-omc.pem;
|
#ssl_certificate /usr/local/omc/etc/certs/tsa-omc.pem;
|
||||||
ssl_certificate_key /usr/local/omc/etc/certs/tsa-omc_pri.pem;
|
#ssl_certificate_key /usr/local/omc/etc/certs/tsa-omc_pri.pem;
|
||||||
|
|
||||||
# location /api/rest/securityManagement {
|
# location /api/rest/securityManagement {
|
||||||
# proxy_pass http://127.0.0.1:5050;
|
# proxy_pass http://127.0.0.1:5050;
|
||||||
@@ -40,8 +40,26 @@ server {
|
|||||||
root /usr/local/omc/htdocs/front/;
|
root /usr/local/omc/htdocs/front/;
|
||||||
index index.html index.htm;
|
index index.html index.htm;
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
|
location /omc-api/ {
|
||||||
|
proxy_pass http://127.0.0.1:3030/;
|
||||||
|
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_cache_bypass $http_upgrade;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "upgrade";
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
proxy_set_header X-Forwarded-Host $host;
|
||||||
|
proxy_set_header X-Forwarded-Port $server_port;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ =404;
|
root /usr/local/omc/htdocs/front;
|
||||||
|
|
||||||
|
try_files $uri $uri/ /index.html;
|
||||||
|
index index.html index.htm;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,10 +6,10 @@ server {
|
|||||||
index index.html index.htm;
|
index index.html index.htm;
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
# SSL
|
# SSL
|
||||||
#ssl_certificate /usr/local/omc/etc/certs/ca_cert.pem;
|
ssl_certificate /usr/local/omc/etc/certs/ca_cert.pem;
|
||||||
#ssl_certificate_key /usr/local/omc/etc/certs/private_key.pem;
|
ssl_certificate_key /usr/local/omc/etc/certs/private_key.pem;
|
||||||
ssl_certificate /usr/local/omc/etc/certs/tsa-omc.pem;
|
#ssl_certificate /usr/local/omc/etc/certs/tsa-omc.pem;
|
||||||
ssl_certificate_key /usr/local/omc/etc/certs/tsa-omc_pri.pem;
|
#ssl_certificate_key /usr/local/omc/etc/certs/tsa-omc_pri.pem;
|
||||||
|
|
||||||
# location /api/rest/securityManagement {
|
# location /api/rest/securityManagement {
|
||||||
# proxy_pass http://127.0.0.1:5050;
|
# proxy_pass http://127.0.0.1:5050;
|
||||||
@@ -40,8 +40,26 @@ server {
|
|||||||
root /usr/local/omc/htdocs/front/;
|
root /usr/local/omc/htdocs/front/;
|
||||||
index index.html index.htm;
|
index index.html index.htm;
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
|
location /omc-api/ {
|
||||||
|
proxy_pass http://127.0.0.1:3030/;
|
||||||
|
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_cache_bypass $http_upgrade;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "upgrade";
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
proxy_set_header X-Forwarded-Host $host;
|
||||||
|
proxy_set_header X-Forwarded-Port $server_port;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ =404;
|
root /usr/local/omc/htdocs/front;
|
||||||
|
|
||||||
|
try_files $uri $uri/ /index.html;
|
||||||
|
index index.html index.htm;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,10 +6,10 @@ server {
|
|||||||
index index.html index.htm;
|
index index.html index.htm;
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
# SSL
|
# SSL
|
||||||
#ssl_certificate /usr/local/omc/etc/certs/ca_cert.pem;
|
ssl_certificate /usr/local/omc/etc/certs/ca_cert.pem;
|
||||||
#ssl_certificate_key /usr/local/omc/etc/certs/private_key.pem;
|
ssl_certificate_key /usr/local/omc/etc/certs/private_key.pem;
|
||||||
ssl_certificate /usr/local/omc/etc/certs/tsa-omc.pem;
|
#ssl_certificate /usr/local/omc/etc/certs/tsa-omc.pem;
|
||||||
ssl_certificate_key /usr/local/omc/etc/certs/tsa-omc_pri.pem;
|
#ssl_certificate_key /usr/local/omc/etc/certs/tsa-omc_pri.pem;
|
||||||
|
|
||||||
# location /api/rest/securityManagement {
|
# location /api/rest/securityManagement {
|
||||||
# proxy_pass http://127.0.0.1:5050;
|
# proxy_pass http://127.0.0.1:5050;
|
||||||
@@ -40,8 +40,26 @@ server {
|
|||||||
root /usr/local/omc/htdocs/front/;
|
root /usr/local/omc/htdocs/front/;
|
||||||
index index.html index.htm;
|
index index.html index.htm;
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
|
location /omc-api/ {
|
||||||
|
proxy_pass http://127.0.0.1:3030/;
|
||||||
|
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_cache_bypass $http_upgrade;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "upgrade";
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
proxy_set_header X-Forwarded-Host $host;
|
||||||
|
proxy_set_header X-Forwarded-Port $server_port;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ =404;
|
root /usr/local/omc/htdocs/front;
|
||||||
|
|
||||||
|
try_files $uri $uri/ /index.html;
|
||||||
|
index index.html index.htm;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user