Skip to content

Commit

Permalink
feat: add join.svsticky.nl
Browse files Browse the repository at this point in the history
  • Loading branch information
SilasPeters committed Mar 4, 2025
1 parent fe4cfee commit 4fc0e0a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions ansible/group_vars/all/websites.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ websites:
- "members.{{ canonical_hostname }}"
- "inschrijven.{{ canonical_hostname }}"
- "signup.{{ canonical_hostname }}"
- "join.{{ canonical_hostname }}"
# You have to remove the task include of koala.yml to remove this completely
state: "present"

Expand Down
7 changes: 4 additions & 3 deletions ansible/roles/koala/templates/nginx.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,19 @@ upstream unicorn {
server unix:/tmp/unicorn.sock fail_timeout=0;
}

# maps inschrijven/signup.svsticky.nl to wordlid.svsticky.nl
# maps inschrijven/signup/join.svsticky.nl to wordlid.svsticky.nl
map $http_host $koala_site {
default $http_host;

inschrijven.{{ canonical_hostname }} wordlid.{{ canonical_hostname }};
signup.{{ canonical_hostname }} wordlid.{{ canonical_hostname }};
signup.{{ canonical_hostname }} wordlid.{{ canonical_hostname }};
join.{{ canonical_hostname }} wordlid.{{ canonical_hostname }};
}

server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name ~^(koala|leden|wordlid|inschrijven|signup|members)\.{{ canonical_hostname }};
server_name ~^(koala|leden|wordlid|inschrijven|signup|join|members)\.{{ canonical_hostname }};

ssl_certificate /etc/letsencrypt/live/koala.{{ canonical_hostname }}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/koala.{{ canonical_hostname }}/privkey.pem;
Expand Down

0 comments on commit 4fc0e0a

Please sign in to comment.