Add security measures to import.gynther.se by blocking known harmful paths
This commit is contained in:
@@ -70,6 +70,11 @@ gitea.gynther.se {
|
|||||||
# ============================================
|
# ============================================
|
||||||
import.gynther.se {
|
import.gynther.se {
|
||||||
import common
|
import common
|
||||||
|
|
||||||
|
# Blockera kända skadliga sökvägar
|
||||||
|
@blocked path_regexp ^/(\.env|\.git|wp-login|robots\.txt|api/graphql|actuator/env|\.DS_Store|file6\.php|wp-.*\.php)$
|
||||||
|
respond @blocked 403
|
||||||
|
|
||||||
reverse_proxy recipe-import-service:3000
|
reverse_proxy recipe-import-service:3000
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user