Commit 56d16809cd694bfca933da3a8a3e3cb64e3d912e
Committed by
David Silva
1 parent
d0133b43
Exists in
update_software_api
and in
1 other branch
Config SISP url in Colab settings
Signed-off-by: Alexandre Barbosa <alexandreab@live.com> Signed-off-by: Lucas Moura <lucas.moura128@gmail.com> (cherry picked from commit 3193675cc487964f4ec135e1e8a986d87c3f17e5)
Showing
2 changed files
with
4 additions
and
0 deletions
Show diff stats
cookbooks/colab/templates/00-custom_settings.py.erb
| @@ -28,6 +28,9 @@ SECRET_KEY = "<%= File.read('/etc/colab/secret.key').strip %>" | @@ -28,6 +28,9 @@ SECRET_KEY = "<%= File.read('/etc/colab/secret.key').strip %>" | ||
| 28 | 28 | ||
| 29 | SITE_URL = "<%= node['config']['site_url'] %>" | 29 | SITE_URL = "<%= node['config']['site_url'] %>" |
| 30 | 30 | ||
| 31 | +SPB_HOST = "<%= node['config']['external_hostname'] %>" | ||
| 32 | +SISP_HOST = "<%= node['config']['sisp_external_hostname'] %>" | ||
| 33 | + | ||
| 31 | ALLOWED_HOSTS = ["<%= node['config']['external_hostname'] %>", | 34 | ALLOWED_HOSTS = ["<%= node['config']['external_hostname'] %>", |
| 32 | "<%= node['config']['sisp_external_hostname'] %>"] | 35 | "<%= node['config']['sisp_external_hostname'] %>"] |
| 33 | 36 |
cookbooks/colab/templates/spb.py.erb
| @@ -5,6 +5,7 @@ name = "colab_spb" | @@ -5,6 +5,7 @@ name = "colab_spb" | ||
| 5 | verbose_name = "SPB Plugin" | 5 | verbose_name = "SPB Plugin" |
| 6 | 6 | ||
| 7 | middlewares = ['colab_spb.middleware.ForceLangMiddleware'] | 7 | middlewares = ['colab_spb.middleware.ForceLangMiddleware'] |
| 8 | +context_processors = ['colab_spb.context_processors.multiportal_url'] | ||
| 8 | 9 | ||
| 9 | urls = { | 10 | urls = { |
| 10 | "include":"colab_spb.urls", | 11 | "include":"colab_spb.urls", |