Initial commit.
This commit is contained in:
19
nginx.conf
Normal file
19
nginx.conf
Normal file
@@ -0,0 +1,19 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user