Add configuration to block access to hidden files in nginx
This commit is contained in:
parent
c22dd91556
commit
1984e64ccd
5 changed files with 42 additions and 0 deletions
9
.cursorignore
Normal file
9
.cursorignore
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
.env*
|
||||||
|
*.pem
|
||||||
|
*.key
|
||||||
|
*.p12
|
||||||
|
*.pfx
|
||||||
|
*.crt
|
||||||
|
*.cert
|
||||||
|
credentials.*
|
||||||
|
secrets.*
|
||||||
9
.cursorindexingignore
Normal file
9
.cursorindexingignore
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
.env*
|
||||||
|
*.pem
|
||||||
|
*.key
|
||||||
|
*.p12
|
||||||
|
*.pfx
|
||||||
|
*.crt
|
||||||
|
*.cert
|
||||||
|
credentials.*
|
||||||
|
secrets.*
|
||||||
|
|
@ -47,6 +47,12 @@ http {
|
||||||
add_header Cache-Control "public";
|
add_header Cache-Control "public";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Block access to hidden files (especially .git)
|
||||||
|
location ~ /\. {
|
||||||
|
deny all;
|
||||||
|
return 404;
|
||||||
|
}
|
||||||
|
|
||||||
# Health check
|
# Health check
|
||||||
location = /api/health {
|
location = /api/health {
|
||||||
proxy_pass http://outline;
|
proxy_pass http://outline;
|
||||||
|
|
|
||||||
9
scripts/.cursorignore
Normal file
9
scripts/.cursorignore
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
.env*
|
||||||
|
*.pem
|
||||||
|
*.key
|
||||||
|
*.p12
|
||||||
|
*.pfx
|
||||||
|
*.crt
|
||||||
|
*.cert
|
||||||
|
credentials.*
|
||||||
|
secrets.*
|
||||||
9
scripts/.cursorindexingignore
Normal file
9
scripts/.cursorindexingignore
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
.env*
|
||||||
|
*.pem
|
||||||
|
*.key
|
||||||
|
*.p12
|
||||||
|
*.pfx
|
||||||
|
*.crt
|
||||||
|
*.cert
|
||||||
|
credentials.*
|
||||||
|
secrets.*
|
||||||
Loading…
Add table
Add a link
Reference in a new issue