Commit 3193675cc487964f4ec135e1e8a986d87c3f17e5

Authored by Alexandre Barbosa
1 parent 798b43ca

Config SISP url in Colab settings

Signed-off-by: Alexandre Barbosa <alexandreab@live.com>
Signed-off-by: Lucas Moura <lucas.moura128@gmail.com>
cookbooks/colab/templates/00-custom_settings.py.erb
... ... @@ -28,6 +28,9 @@ SECRET_KEY = &quot;&lt;%= File.read(&#39;/etc/colab/secret.key&#39;).strip %&gt;&quot;
28 28  
29 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 34 ALLOWED_HOSTS = ["<%= node['config']['external_hostname'] %>",
32 35 "<%= node['config']['sisp_external_hostname'] %>"]
33 36  
... ...
cookbooks/colab/templates/spb.py.erb
... ... @@ -5,6 +5,7 @@ name = &quot;colab_spb&quot;
5 5 verbose_name = "SPB Plugin"
6 6  
7 7 middlewares = ['colab_spb.middleware.ForceLangMiddleware']
  8 +context_processors = ['colab_spb.context_processors.multiportal_url']
8 9  
9 10 urls = {
10 11 "include":"colab_spb.urls",
... ...