1
0
This commit is contained in:
2023-08-26 11:25:40 +08:00
parent e9805e98e4
commit 9545d76071
34 changed files with 1546 additions and 0 deletions

47
build/nginx/omc.conf Normal file
View File

@@ -0,0 +1,47 @@
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name 0.0.0.0;
root /usr/local/omc/htdocs/front/;
index index.html index.htm;
server_name localhost;
# SSL
#ssl_certificate /usr/local/omc/etc/certs/ca_cert.pem;
#ssl_certificate_key /usr/local/omc/etc/certs/private_key.pem;
ssl_certificate /usr/local/omc/etc/certs/tsa-omc.pem;
ssl_certificate_key /usr/local/omc/etc/certs/tsa-omc_pri.pem;
# location /api/rest/securityManagement {
# proxy_pass http://127.0.0.1:5050;
# }
# location /api/rest/resourceManagement {
# proxy_pass http://127.0.0.1:5050;
# }
# location /api/rest/performanceManagement {
# proxy_pass http://127.0.0.1:5050;
# }
# location /api/rest/faultManagement {
# proxy_pass http://127.0.0.1:5050;
# }
# location /api/rest/aaaa/ {
# proxy_pass http://127.0.0.1:4040;
# }
location /api/rest/ {
proxy_pass http://127.0.0.1:3030;
}
location / {
try_files $uri $uri/ =404;
}
}
server {
listen 8888 default_server;
listen [::]:8888 default_server;
root /usr/local/omc/htdocs/front/;
index index.html index.htm;
server_name localhost;
location / {
try_files $uri $uri/ =404;
}
}