1
0

fix: omc.conf for new frame

This commit is contained in:
2023-10-27 19:39:00 +08:00
parent ea6e19fd97
commit 39e31d7647
4 changed files with 44 additions and 40 deletions

View File

@@ -24,22 +24,23 @@ server {
# proxy_pass http://127.0.0.1:5050; # proxy_pass http://127.0.0.1:5050;
# } # }
# location /api/rest/aaaa/ { # location /api/rest/aaaa/ {
# proxy_pass http://127.0.0.1:4040; # proxy_pass http://127.0.0.1:4040;
# } # }
location /api/rest/ { location /api/rest/ {
proxy_pass http://127.0.0.1:3030; proxy_pass http://127.0.0.1:3030;
} }
location / { location / {
try_files $uri $uri/ =404; try_files $uri $uri/ =404;
} }
} }
server { server {
listen 8888 default_server; listen 8888 default_server;
listen [::]:8888 default_server; listen [::]:8888 default_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/ { location /omc-api/ {
proxy_pass http://127.0.0.1:3030/; proxy_pass http://127.0.0.1:3030/;
@@ -55,11 +56,11 @@ server {
proxy_set_header X-Forwarded-Port $server_port; proxy_set_header X-Forwarded-Port $server_port;
} }
location / { location / {
root /usr/local/omc/htdocs/front; root /usr/local/omc/htdocs/front;
try_files $uri $uri/ /index.html; try_files $uri $uri/ /index.html;
index index.html index.htm; index index.html index.htm;
} }
} }

View File

@@ -24,22 +24,23 @@ server {
# proxy_pass http://127.0.0.1:5050; # proxy_pass http://127.0.0.1:5050;
# } # }
# location /api/rest/aaaa/ { # location /api/rest/aaaa/ {
# proxy_pass http://127.0.0.1:4040; # proxy_pass http://127.0.0.1:4040;
# } # }
location /api/rest/ { location /api/rest/ {
proxy_pass http://127.0.0.1:3030; proxy_pass http://127.0.0.1:3030;
} }
location / { location / {
try_files $uri $uri/ =404; try_files $uri $uri/ =404;
} }
} }
server { server {
listen 8888 default_server; listen 8888 default_server;
listen [::]:8888 default_server; listen [::]:8888 default_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/ { location /omc-api/ {
proxy_pass http://127.0.0.1:3030/; proxy_pass http://127.0.0.1:3030/;
@@ -55,11 +56,11 @@ server {
proxy_set_header X-Forwarded-Port $server_port; proxy_set_header X-Forwarded-Port $server_port;
} }
location / { location / {
root /usr/local/omc/htdocs/front; root /usr/local/omc/htdocs/front;
try_files $uri $uri/ /index.html; try_files $uri $uri/ /index.html;
index index.html index.htm; index index.html index.htm;
} }
} }

View File

@@ -24,22 +24,23 @@ server {
# proxy_pass http://127.0.0.1:5050; # proxy_pass http://127.0.0.1:5050;
# } # }
# location /api/rest/aaaa/ { # location /api/rest/aaaa/ {
# proxy_pass http://127.0.0.1:4040; # proxy_pass http://127.0.0.1:4040;
# } # }
location /api/rest/ { location /api/rest/ {
proxy_pass http://127.0.0.1:3030; proxy_pass http://127.0.0.1:3030;
} }
location / { location / {
try_files $uri $uri/ =404; try_files $uri $uri/ =404;
} }
} }
server { server {
listen 8888 default_server; listen 8888 default_server;
listen [::]:8888 default_server; listen [::]:8888 default_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/ { location /omc-api/ {
proxy_pass http://127.0.0.1:3030/; proxy_pass http://127.0.0.1:3030/;
@@ -55,11 +56,11 @@ server {
proxy_set_header X-Forwarded-Port $server_port; proxy_set_header X-Forwarded-Port $server_port;
} }
location / { location / {
root /usr/local/omc/htdocs/front; root /usr/local/omc/htdocs/front;
try_files $uri $uri/ /index.html; try_files $uri $uri/ /index.html;
index index.html index.htm; index index.html index.htm;
} }
} }

View File

@@ -24,22 +24,23 @@ server {
# proxy_pass http://127.0.0.1:5050; # proxy_pass http://127.0.0.1:5050;
# } # }
# location /api/rest/aaaa/ { # location /api/rest/aaaa/ {
# proxy_pass http://127.0.0.1:4040; # proxy_pass http://127.0.0.1:4040;
# } # }
location /api/rest/ { location /api/rest/ {
proxy_pass http://127.0.0.1:3030; proxy_pass http://127.0.0.1:3030;
} }
location / { location / {
try_files $uri $uri/ =404; try_files $uri $uri/ =404;
} }
} }
server { server {
listen 8888 default_server; listen 8888 default_server;
listen [::]:8888 default_server; listen [::]:8888 default_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/ { location /omc-api/ {
proxy_pass http://127.0.0.1:3030/; proxy_pass http://127.0.0.1:3030/;
@@ -55,11 +56,11 @@ server {
proxy_set_header X-Forwarded-Port $server_port; proxy_set_header X-Forwarded-Port $server_port;
} }
location / { location / {
root /usr/local/omc/htdocs/front; root /usr/local/omc/htdocs/front;
try_files $uri $uri/ /index.html; try_files $uri $uri/ /index.html;
index index.html index.htm; index index.html index.htm;
} }
} }