Files
infra/ansible/roles/profile_atlas/templates/atlas-onlyoffice-access.conf.j2
2026-10-04 17:10:55 +02:00

9 lines
280 B
Django/Jinja

# 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;
}