Skip to content

Commit

Permalink
Merge pull request #29 from phac-nml/multiple_machine_name
Browse files Browse the repository at this point in the history
allow for multiple name for server
  • Loading branch information
mgopez authored Dec 23, 2020
2 parents 47601ee + 0d8a0e7 commit d61653a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions examples/irida.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ irida::tomcat_group: 'grp_tomcat'
irida::manage_user: true
irida::java_heap_memory: 2048
irida::irida_ip_addr: irida.ca
irida::server_base_url: 'irida.ca'
irida::make_db: true
irida::db_user: irida
irida::db_password: REALLYstrongPASSWORDsoGOOD!!!!1!
Expand Down
1 change: 1 addition & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
String $tomcat_logs_location = "${tomcat_location}/logs",
Integer $java_heap_memory = 1024,
String $irida_ip_addr = 'localhost',
String $server_base_url = 'localhost',
String $irida_version = '20.01.2', #release tags https://github.com/phac-nml/irida/releases
String $irida_url_path = 'irida',
String $linker_script = 'ngsArchiveLinker.pl',
Expand Down
6 changes: 3 additions & 3 deletions templates/web.conf.erb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# The externally visible URL for accessing this instance of IRIDA. This key is
# used by the e-mailer when sending out e-mail notifications (password resets,
# for example) and embeds this URL directly in the body of the e-mail.
<% if @use_ssl %>
server.base.url=https://<%= @irida_ip_addr %>/<%= @irida_url_path %>
<% if @use_ssl && @force_ssl %>
server.base.url=https://<%= @server_base_url %>/<%= @irida_url_path %>
<% else %>
server.base.url=http://<%= @irida_ip_addr %>/<%= @irida_url_path %>
server.base.url=http://<%= @server_base_url %>/<%= @irida_url_path %>
<% end %>

# Mail server configuration settings
Expand Down

0 comments on commit d61653a

Please sign in to comment.