From e178505d2dc3d13235707a11026ac03f005ac6e0 Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Tue, 20 Feb 2024 10:35:59 -0800 Subject: [PATCH] Add redirect from openneo.net to impress.openneo.net The homepage used to point to old projects that don't work anymore anyway! This is the only project that stuck, so just redirect here! We also remove the openneo.net link from the footer, because there's nothing useful to say there anymore! --- app/views/layouts/application.html.haml | 1 - deploy/files/sites-available/openneo-home.conf | 11 +++++++++++ deploy/setup.yml | 15 +++++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 deploy/files/sites-available/openneo-home.conf 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