Skip to content

Commit

Permalink
correctly use server_aliases and update tests (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom authored Jun 7, 2023
1 parent 385d4ee commit 370a733
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ servername: localhost
# Example:
# server_aliases:
# - foo.example.com
#server_aliases: []
server_aliases:
- 'other-site.notrealdoman.edu'

# The server name used for rewrites
# Example:
Expand Down
3 changes: 2 additions & 1 deletion molecule/default/fixtures/config/ood_portal.yml.custom.httpd
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ servername: localhost
# Example:
# server_aliases:
# - foo.example.com
#server_aliases: []
server_aliases:
- 'other-site.notrealdoman.edu'

# The server name used for rewrites
# Example:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ servername: localhost
# Example:
# server_aliases:
# - foo.example.com
#server_aliases: []
server_aliases:
- 'other-site.notrealdoman.edu'

# The server name used for rewrites
# Example:
Expand Down
3 changes: 3 additions & 0 deletions molecule/default/vars/portal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ security_strict_transport: true
pun_pre_hook_exports: 'OIDC_ACCESS_TOKEN,OIDC_CLAIM_EMAIL'
pun_pre_hook_root_cmd: '/opt/site/site_pre_hook'

server_aliases:
- other-site.notrealdoman.edu

ood_auth_openidc:
OIDCSessionMaxDuration: 28888
OIDCClientID: myid
Expand Down
2 changes: 1 addition & 1 deletion templates/ood_portal.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# - foo.example.com
{% if server_aliases is defined and server_aliases|length > 0 %}
server_aliases:
{% for item in maintenance_ip_allowlist %}
{% for item in server_aliases %}
- '{{ item }}'
{% endfor %}
{% else %}
Expand Down

0 comments on commit 370a733

Please sign in to comment.