summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-04-27 01:58:21 +0300
committerDevaev Maxim <[email protected]>2019-04-27 01:58:21 +0300
commitc40f13e2d79c2ed23502e3c49f9b1e8c7d23f1c2 (patch)
tree0f0e006ebbb8eb0ea7b1e25dab82af908727096f /configs
parenta89612e5ac6ae03089500768bed9ef049ce75c4b (diff)
url refactoring
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;