Skip to content

Commit

Permalink
Merge pull request #12 from ls1intum/registry-cors
Browse files Browse the repository at this point in the history
Fix registry cors.
  • Loading branch information
Mtze authored Mar 28, 2022
2 parents c4c62f8 + ced87d0 commit e801712
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace: ls1intum
name: artemis

version: 0.3.2
version: 0.3.3

readme: README.md

Expand Down
2 changes: 2 additions & 0 deletions roles/broker/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ registry_application_prod_spring_password: "{{ registry_password }}"
# Configure the registry ip address - by default it uses the wireguard network
registry_ip_address: "{{ wireguard_interface_address }}"

registry_external_host: "" # External host under which the registry UI should be reachable (excluding https://)

registry_application_prod_jwt: "{{ registry_jwt }}"
registry_application_jwt: "{{ registry_jwt }}"
registry_bootstrap_prod_jwt: "{{ registry_jwt }}"
Expand Down
2 changes: 1 addition & 1 deletion roles/broker/templates/registry_application-prod.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jhipster:
registry:
password: {{ registry_application_prod_registry_password }}
cors:
allowed-origins: https://[{{ activemq_ip_address }}]
allowed-origins: https://[{{ activemq_ip_address }}],https://{{ registry_external_host }}
allowed-methods: GET, PUT, POST, DELETE, OPTIONS
allowed-headers: "*"
exposed-headers:
Expand Down

0 comments on commit e801712

Please sign in to comment.