Commit 41d58dad0888511d9cd4c2cf828c3ae8252f6031
1 parent
39cfb391
Exists in
colab_automated_login
Added middleware to plugin config files
Signed-off-by: Matheus Fernandes <matheus.souza.fernandes@gmail.com> Signed-off-by: Simião Carvalho <simiaosimis@gmail.com>
Showing
2 changed files
with
10 additions
and
0 deletions
Show diff stats
cookbooks/colab/templates/gitlab.py.erb
... | ... | @@ -11,6 +11,11 @@ upstream = 'http://<%= node['peers']['integration'] %>:81/gitlab/' |
11 | 11 | private_token = '<%= @get_private_token.call %>' |
12 | 12 | verify_ssl = False |
13 | 13 | |
14 | +middlewares = [ | |
15 | + 'colab.middlewares.cookie_middleware.CookiePreHandlerMiddleware', | |
16 | + 'colab.middlewares.cookie_middleware.CookiePostHandlerMiddleware' | |
17 | +] | |
18 | + | |
14 | 19 | urls = { |
15 | 20 | 'include': 'colab_gitlab.urls', |
16 | 21 | 'namespace': 'gitlab', # TODO: do not allow to change namespace | ... | ... |
cookbooks/colab/templates/noosfero.py.erb
... | ... | @@ -10,6 +10,11 @@ verbose_name = 'Noosfero Plugin' |
10 | 10 | |
11 | 11 | upstream = 'http://<%= node['peers']['social'] %>:80/social/' |
12 | 12 | |
13 | +middlewares = [ | |
14 | + 'colab.middlewares.cookie_middleware.CookiePreHandlerMiddleware', | |
15 | + 'colab.middlewares.cookie_middleware.CookiePostHandlerMiddleware' | |
16 | +] | |
17 | + | |
13 | 18 | private_token = '<%= @get_private_token.call %>' |
14 | 19 | |
15 | 20 | urls = { | ... | ... |