Files
neko-rooms/traefik/nginx-auth/nginx.conf
T
ChillyEmber 6d1d647455 Add nginx.conf with authentication support (#74)
* NGINX w/ Authentication

* Delete .idea/.idea.neko-rooms-nginx-authentication.dir/.idea directory
2022-11-06 12:56:50 +01:00

23 lines
721 B
Nginx Configuration File

server {
server_name [DOMAIN];
listen 80;
location / {
proxy_pass http://traefik:8080; # traefik domain (name of the service)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 86400;
auth_basic "Authentication Required";
auth_basic_user_file /etc/apache2/.htpasswd;
}
location /rooms {
proxy_pass http://traefik:8080; # traefik domain (name of the service)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 86400;
auth_basic off;
}
}