nginx/nginx_site_http.conf.j2

14 lines
314 B
Text
Raw Normal View History

2026-02-10 08:49:44 +01:00
server {
listen 80;
2026-02-11 20:09:03 +01:00
server_name {{ intranet.nginx.domain_name }};
2026-02-10 08:49:44 +01:00
2026-02-11 20:09:03 +01:00
root /var/www/{{ intranet.nginx.domain_name }};
2026-02-10 08:49:44 +01:00
index index.html;
location / {
auth_basic "Accès restreint";
2026-02-11 20:09:03 +01:00
auth_basic_user_file {{ intranet.nginx.htpasswd_file }};
2026-02-10 08:49:44 +01:00
try_files $uri $uri/ =404;
}
}