Hide ONLYOFFICE welcome and example endpoints

This commit is contained in:
Fabio Scotto di Santolo
2026-10-04 17:10:55 +02:00
parent 9f95e68190
commit bb67c406da
4 changed files with 34 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
# Managed by Ansible; loaded inside the ONLYOFFICE Nginx server block.
# Return-only server rewrite rules run before the vendor welcome redirect.
if ($uri = /) {
return 404;
}
if ($uri ~* "^/([0-9]+\.[0-9]+\.[0-9]+[-.][A-Za-z0-9_-]+/)?(welcome|example)(/|$)") {
return 404;
}