add basic auth for kalliope & disable it for the rest
This commit is contained in:
@@ -8,7 +8,7 @@ http {
|
||||
listen [::]:80 default_server;
|
||||
server_name dev.contacthub.lblod.info;
|
||||
|
||||
location / {
|
||||
location /v3/api-docs {
|
||||
auth_basic "Contact Hub realm";
|
||||
auth_basic_user_file /etc/nginx/conf.d/nginx.htpasswd;
|
||||
proxy_http_version 1.1;
|
||||
@@ -20,6 +20,69 @@ http {
|
||||
client_max_body_size 3072m;
|
||||
}
|
||||
|
||||
location /delta {
|
||||
auth_basic "Contact Hub realm";
|
||||
auth_basic_user_file /etc/nginx/conf.d/nginx.htpasswd;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_pass http://identifier;
|
||||
client_max_body_size 3072m;
|
||||
}
|
||||
|
||||
location /bulk {
|
||||
auth_basic "Contact Hub realm";
|
||||
auth_basic_user_file /etc/nginx/conf.d/nginx.htpasswd;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_pass http://identifier;
|
||||
client_max_body_size 3072m;
|
||||
}
|
||||
|
||||
location /changes {
|
||||
auth_basic "Contact Hub realm";
|
||||
auth_basic_user_file /etc/nginx/conf.d/nginx.htpasswd;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_pass http://identifier;
|
||||
client_max_body_size 3072m;
|
||||
}
|
||||
|
||||
location /consolidated {
|
||||
auth_basic "Contact Hub realm";
|
||||
auth_basic_user_file /etc/nginx/conf.d/nginx.htpasswd;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_pass http://identifier;
|
||||
client_max_body_size 3072m;
|
||||
}
|
||||
|
||||
|
||||
location / {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_pass http://identifier;
|
||||
client_max_body_size 3072m;
|
||||
}
|
||||
|
||||
location ~ /authorization/callback(.*) {
|
||||
rewrite ^ /torii/redirect.html permanent;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user