Setup Backend & Basic Auth

This commit is contained in:
Nordine Bittich
2021-03-16 14:33:00 +01:00
commit c486528e69
11 changed files with 464 additions and 0 deletions

24
config/proxy/web.conf Normal file
View File

@@ -0,0 +1,24 @@
events {
}
http {
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name dev.contacthub.lblod.info;
location / {
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;
}
}
}