mirror of
https://github.com/fscotto/infra.git
synced 2026-10-06 23:09:51 +00:00
Hide ONLYOFFICE welcome and example endpoints
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -10,6 +10,8 @@ NetworkAlias=atlas-onlyoffice
|
||||
PublishPort={{ ansible_host }}:{{ atlas_onlyoffice_http_port }}:80
|
||||
PublishPort=127.0.0.1:{{ atlas_onlyoffice_http_port }}:80
|
||||
EnvironmentFile={{ atlas_nextcloud_private_dir }}/onlyoffice.env
|
||||
Environment=EXAMPLE_ENABLED=false
|
||||
Volume={{ atlas_nextcloud_private_dir }}/onlyoffice-access.conf:/etc/nginx/includes/ds-atlas-access.conf:ro,Z
|
||||
Volume={{ atlas_nextcloud_root }}/office/data:/var/www/onlyoffice/Data:Z
|
||||
Volume={{ atlas_nextcloud_root }}/office/lib:/var/lib/onlyoffice:Z
|
||||
Volume={{ atlas_nextcloud_root }}/office/logs:/var/log/onlyoffice:Z
|
||||
|
||||
Reference in New Issue
Block a user