Files
nginx-with-password-protect…/nginx.conf
Florian THIERRY 7bf349340a Initial commit.
2025-06-13 23:34:26 +02:00

19 lines
334 B
Nginx Configuration File

events {
worker_connections 1024;
}
http {
server {
listen 80;
server_name votre_domaine.com;
location /secret-file.txt {
auth_basic "Accès restreint";
auth_basic_user_file /etc/nginx/.htpasswd;
# Autres directives pour servir votre fichier
# Par exemple :
alias /app/secret-file.txt;
}
}
}