From f2cc036056b26d3816eb7886099eeb6d290029ed Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 29 Apr 2022 01:40:08 +0200 Subject: [PATCH] improving --- conf/pagure.cfg.sample | 6 +++--- scripts/install | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/conf/pagure.cfg.sample b/conf/pagure.cfg.sample index ca6d250..61bf898 100644 --- a/conf/pagure.cfg.sample +++ b/conf/pagure.cfg.sample @@ -189,16 +189,16 @@ SESSION_COOKIE_SECURE = True # The name of the cookie used to store the session id. # Default: ``.pagure``. -SESSION_COOKIE_NAME = 'pagure' +SESSION_COOKIE_NAME = '__APP__' # Boolean specifying whether to check the user's IP address when retrieving # its session. This make things more secure (thus is on by default) but # under certain setup it might not work (for example is there are proxies # in front of the application). -CHECK_SESSION_IP = True +CHECK_SESSION_IP = False # Used by SESSION_COOKIE_PATH -APPLICATION_ROOT = '/' +APPLICATION_ROOT = '/__PATH__' # Allow the backward compatiblity endpoints for the old URLs schema to # see the commits of a repo. This is only interesting if you pagure instance diff --git a/scripts/install b/scripts/install index 278535a..154037f 100755 --- a/scripts/install +++ b/scripts/install @@ -174,7 +174,6 @@ pushd "$final_path" pip install pygit2 pip install "jinja2<3.1.0" pip install -r requirements.txt - read -p "ppp" ynh_add_config --template="../conf/alembic.ini" --destination="$final_path/alembic.ini" PAGURE_CONFIG=${final_path}/pagure.cfg python createdb.py --initial alembic.ini 2>&1 popd