|
|
| # |
| # There are two sessions on pagure, login that holds for 31 days and |
| # the session defined here after which an user has to re-login. |
| # This session is used when accessing all administrative parts of pagure |
| # (ie: changing a project's or a user's settings) |
| ADMIN_SESSION_LIFETIME = timedelta(minutes=20) |
|
|
| # |
| SECRET_KEY='<The web application secret key>' |
|
|
| # |
| #DB_URL=mysql://user:pass@host/db_name |
| #DB_URL=postgres://user:pass@host/db_name |
| DB_URL = 'sqlite:////var/tmp/pagure_dev.sqlite' |
|
|
| # |
| ADMIN_GROUP = ['sysadmin-main'] |
|
|
| # |
| EMAIL_ERROR = 'pingou@pingoured.fr' |
|
|
| # |
| SMTP_SERVER = 'localhost' |
|
|
| # |
| FROM_EMAIL = 'pagure@pagure.io' |
| DOMAIN_EMAIL_NOTIFICATIONS = 'pagure.io' |
| SALT_EMAIL = '<secret key to be changed>' |
|
|
| # |
| APP_URL = 'https://pagure.io/' |
|
|
| # |
| GIT_URL_SSH = 'git@pagure.io' |
| GIT_URL_GIT = 'git://pagure.io' |
|
|
| # |
| GIT_FOLDER = os.path.join( |
| os.path.abspath(os.path.dirname(__file__)), |
| '..', |
| 'repos' |
| ) |
|
|
| # |
| FORK_FOLDER = os.path.join( |
| os.path.abspath(os.path.dirname(__file__)), |
| '..', |
| 'forks' |
| ) |
|
|
| # |
| DOCS_FOLDER = os.path.join( |
| os.path.abspath(os.path.dirname(__file__)), |
| '..', |
| 'docs' |
| ) |
| # |
| REQUESTS_FOLDER = os.path.join( |
| os.path.abspath(os.path.dirname(__file__)), |
| '..', |
| 'requests' |
| ) |
|
|
| # |
| GITOLITE_CONFIG = os.path.join( |
| os.path.abspath(os.path.dirname(__file__)), |
| '..', |
| 'gitolite.conf' |
| ) |
|
|
| |
| # |
| # |
| GITOLITE_HOME = None |
|
|
| # |
| GITOLITE_KEYDIR = None |
|
|
| # |
| GL_RC = None |
|
|
| # |
| GL_BINDIR = None |
|
|
| |
| # Optional configuration |
|
|
| # |
| # Used when listing items |
| ITEM_PER_PAGE = 50 |
|
|
| # |
| # Used to limit the size of file attached to a ticket for example |
| MAX_CONTENT_LENGTH = 4 * 1024 * 1024 # 4 megabytes |
|
|
| # |
| SHORT_LENGTH = 6 |
|
|
| # |
| # |
| BLACKLISTED_PROJECTS = ['static', 'pv'] |
|
|
| # |
| # |
| # |
| IP_ALLOWED_INTERNAL = ['127.0.0.1', 'localhost', '::1'] |
|
|
| |
| # Authentication related configuration option |
|
|
| # |
| # Specify which authentication method to use, defaults to `fas` can be or |
| # `local` |
| # Default: ``fas``. |
| PAGURE_AUTH = 'fas' |
|
|
| # When this is set to True, the session cookie will only be returned to the |
| # server via ssl (https). If you connect to the server via plain http, the |
| # cookie will not be sent. This prevents sniffing of the cookie contents. |
| # This may be set to False when testing your application but should always |
| # be set to True in production. |
| # Default: ``True``. |
| SESSION_COOKIE_SECURE = False |
|
|
| # The name of the cookie used to store the session id. |
| # Default: ``.pagure``. |
| SESSION_COOKIE_NAME = 'pagure' |
|
|
| # Boolean specifying wether 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 |
|
|
| # Used by SESSION_COOKIE_PATH |
| APPLICATION_ROOT = '/' |