elections: fix the path to the database and in the cookie
The path to the database did not open correctly the jinja variable. The application_root is used in the cookie, and now that elections is running at the root of the URL, it must reflect that. Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
36c87bb034
commit
905f32a0e8
1 changed files with 4 additions and 5 deletions
|
@ -5,15 +5,14 @@ import os
|
|||
### Secret key for the Flask application
|
||||
SECRET_KEY='{{ elections_secret_key }}'
|
||||
|
||||
### url to the database server:
|
||||
{% if env == 'staging' %}
|
||||
# Used by SESSION_COOKIE_PATH
|
||||
APPLICATION_ROOT = '/'
|
||||
|
||||
### url to the database server:
|
||||
{% if env == 'staging' %}
|
||||
DB_URL='postgresql://{{ elections_db_user }}:{{ elections_db_pass }}@db01.stg.phx2.fedoraproject.org/{{ elections_db_name }}'
|
||||
{% else %}
|
||||
# Used by SESSION_COOKIE_PATH
|
||||
APPLICATION_ROOT = '/voting/'
|
||||
DB_URL='postgresql://{{ elections_db_user }}:{{ elections_db_pass }}@db01.phx2.fedoraproject.org/elections_db_name }}'
|
||||
DB_URL='postgresql://{{ elections_db_user }}:{{ elections_db_pass }}@db01.phx2.fedoraproject.org/{{ elections_db_name }}'
|
||||
{% endif %}
|
||||
|
||||
## One ore more FAS group that will have admin rights over the whole
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue