Skip to content
Snippets Groups Projects
Commit a17c5841 authored by jurgenhaas's avatar jurgenhaas
Browse files

Bring back cache control in Apache vhost.conf

Correct base path for web ui
Add html site for base url to redirect to /web in web-ui
parent c3588e40
Branches
No related tags found
No related merge requests found
......@@ -8,6 +8,14 @@
with_items:
- /opt/alerta/api/plugins
- /opt/alerta/webui
- /var/www/alerta
- name: Copy Apache index
template:
src: '{{ item }}'
dest: /var/www/alerta/{{ item }}
with_items:
- index.html
- name: Copy Alerta config files
template:
......
<html>
<body>
You can find this service now at <a href="https://{{ alerta_domain }}/web">https://{{ alerta_domain }}/web</a>.
</body>
</html>
......@@ -23,7 +23,13 @@
Header always add Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
DocumentRoot /var/www/html
FileETag None
Header unset ETag
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
DocumentRoot /var/www/alerta
<Proxy *>
Include /etc/apache2/conf-available/global-deny.conf
......
{
"endpoint": "https://{{ alerta_domain }}/api",
"base_path": "/",
"base_path": "/web",
"provider": "gitlab",
"client_id": "{{ alerta_gitlab.client_id }}",
"gitlab_url": "https://{{ alerta_gitlab.domain }}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment