diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 0fef8b56..7a71cab7 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -60,7 +60,6 @@ %noscript= submit_tag 'Go' %ul - %li= link_to t('organization_name'), 'https://openneo.net/' %li= link_to t('.footer.source_code'), 'https://github.com/openneo/impress' %li= link_to t('.footer.terms'), terms_path diff --git a/deploy/files/sites-available/openneo-home.conf b/deploy/files/sites-available/openneo-home.conf new file mode 100644 index 00000000..da1a84d0 --- /dev/null +++ b/deploy/files/sites-available/openneo-home.conf @@ -0,0 +1,11 @@ +server { + server_name openneo.net; + listen 80; + listen [::]:80; + listen 443 ssl; + listen [::]:443 ssl; + + location / { + return 302 https://{{impress_hostname}}/; + } +} diff --git a/deploy/setup.yml b/deploy/setup.yml index 4487153a..f57618b1 100644 --- a/deploy/setup.yml +++ b/deploy/setup.yml @@ -320,6 +320,21 @@ notify: - Reload nginx + - name: Add openneo-home config file to nginx + template: + src: files/sites-available/openneo-home.conf + dest: /etc/nginx/sites-available/openneo-home.conf + notify: + - Reload nginx + + - name: Enable openneo-home config file in nginx + file: + src: /etc/nginx/sites-available/openneo-home.conf + dest: /etc/nginx/sites-enabled/openneo-home.conf + state: link + notify: + - Reload nginx + - name: Install MariaDB apt: name: mariadb-server