summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
Diffstat (limited to 'configs')
-rw-r--r--configs/nginx/nginx.conf28
1 files changed, 14 insertions, 14 deletions
diff --git a/configs/nginx/nginx.conf b/configs/nginx/nginx.conf
index 8cfde430..444d5aab 100644
--- a/configs/nginx/nginx.conf
+++ b/configs/nginx/nginx.conf
@@ -55,9 +55,9 @@ http {
server_name localhost;
#PROD include /etc/kvmd/nginx/ssl.conf;
- auth_request /auth;
+ auth_request /auth_check;
- location = /auth {
+ location = /auth_check {
internal;
proxy_pass http://kvmd/auth/check;
proxy_pass_request_body off;
@@ -95,18 +95,18 @@ http {
auth_request off;
}
- location /kvmd/ws {
- rewrite ^/kvmd/ws$ /ws break;
- rewrite ^/kvmd/ws\?(.*)$ /ws?$1 break;
+ location /api/ws {
+ rewrite ^/api/ws$ /ws break;
+ rewrite ^/api/ws\?(.*)$ /ws?$1 break;
proxy_pass http://kvmd;
include /etc/kvmd/nginx/loc-proxy.conf;
include /etc/kvmd/nginx/loc-websocket.conf;
auth_request off;
}
- location /kvmd/msd/write {
- rewrite ^/kvmd/msd/write$ /msd/write break;
- rewrite ^/kvmd/msd/write\?(.*)$ /msd/write?$1 break;
+ location /api/msd/write {
+ rewrite ^/api/msd/write$ /msd/write break;
+ rewrite ^/api/msd/write\?(.*)$ /msd/write?$1 break;
proxy_pass http://kvmd;
include /etc/kvmd/nginx/loc-proxy.conf;
limit_rate 6250k;
@@ -116,9 +116,9 @@ http {
auth_request off;
}
- location /kvmd/log {
- rewrite ^/kvmd/log$ /log break;
- rewrite ^/kvmd/log\?(.*)$ /log?$1 break;
+ location /api/log {
+ rewrite ^/api/log$ /log break;
+ rewrite ^/api/log\?(.*)$ /log?$1 break;
proxy_pass http://kvmd;
include /etc/kvmd/nginx/loc-proxy.conf;
proxy_read_timeout 7d;
@@ -128,9 +128,9 @@ http {
auth_request off;
}
- location /kvmd {
- rewrite ^/kvmd$ / break;
- rewrite ^/kvmd/(.*)$ /$1 break;
+ location /api {
+ rewrite ^/api$ / break;
+ rewrite ^/api/(.*)$ /$1 break;
proxy_pass http://kvmd;
include /etc/kvmd/nginx/loc-proxy.conf;
auth_request off;