-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b7bce10
commit 37f0706
Showing
3 changed files
with
163 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# The settings in this file are secondary to .env, which overrides | ||
|
||
# Assume production by default, unset debug and testing state | ||
FLASK_DEBUG=false | ||
FLASK_DEBUG_TB_ENABLED=false | ||
FLASK_TESTING=false | ||
|
||
# To only support HTTPS, set Secure Cookies to True | ||
FLASK_SESSION_COOKIE_SECURE=True | ||
|
||
# --- App configuration | ||
# Default timezone when user timezone is not known | ||
FLASK_TIMEZONE='Asia/Kolkata' | ||
FLASK_ASSET_MANIFEST_PATH=static/build/manifest.json | ||
# Asset base path – without a trailing slash | ||
FLASK_ASSET_BASE_PATH=/static/build | ||
FLASK_STATIC_SUBDOMAIN=static |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
# Sample configuration for the `.env` settings file. These values are interpeted as | ||
# JSON, falling back to plain strings. This file must be a valid shell script, so | ||
# values using shell glob characters '*?[]' must be enclosed in single quotes | ||
|
||
# --- Development mode (remove these three in production) | ||
# Coaster uses this value; Flask 2.2's deprecation warning can be ignored | ||
FLASK_ENV=development | ||
# Flask >=2.2 requires this value | ||
FLASK_DEBUG=1 | ||
# Flask-DebugToolbar (optional) is useful for dev, but MUST NOT BE enabled in production | ||
FLASK_DEBUG_TB_ENABLED=true | ||
|
||
# --- Domain configuration (these must point to 127.0.0.1 in /etc/hosts in dev and test) | ||
# Hasjob app's server name (Hasjob uses 'hasjob.co' in production) | ||
FLASK_SERVER_NAME=hasjob.test:5001 | ||
# Auth cookie domain (auth cookie is shared across apps in subdomains) | ||
FLASK_LASTUSER_COOKIE_DOMAIN=.hasjob.test | ||
FLASK_SESSION_COOKIE_DOMAIN=.hasjob.test | ||
# For dev, uncomment to override secure cookies, when not using HTTPS | ||
# FLASK_SESSION_COOKIE_SECURE=false | ||
|
||
# --- Secrets | ||
# Secret keys with key rotation -- put older keys further down the list. Older keys will | ||
# be used to decode tokens as fallback, but will not be used to encode. Remove old keys | ||
# when they are considered expired | ||
FLASK_SECRET_KEYS='["make-this-something-random", "older-secret-keys-here"]' | ||
# Secret key for sitemap URLs submitted to Google | ||
SITEMAP_KEY=make-this-something-random | ||
|
||
# --- Analytics | ||
# Google Analytics code | ||
FLASK_GA_CODE=null | ||
# Matomo analytics (shared config across apps; URL must have trailing slash) | ||
FLASK_MATOMO_URL=https://... | ||
# MATOMO_JS and MATOMO_FILE have default values; override if your installation varies | ||
# FLASK_MATOMO_JS=matomo.js | ||
# FLASK_MATOMO_FILE=matomo.php | ||
# Matomo API key, used in funnel.cli.periodic.stats | ||
FLASK_MATOMO_TOKEN=null | ||
# Matomo site id (app-specific) | ||
FLASK_MATOMO_ID= | ||
|
||
# --- Statsd logging (always enabled, emits to UDP) | ||
# Support for tagging varies between implementations: | ||
# Etsy's statsd doesn't support tagging (default `false` merges tags into metric name) | ||
# Telegraf uses `,` as a tag separator | ||
# Prometheus uses `;` as a tag separator | ||
FLASK_STATSD_TAGS=, | ||
# Other statsd settings have default values: | ||
# FLASK_STATSD_HOST=127.0.0.1 | ||
# FLASK_STATSD_PORT=8125 | ||
# FLASK_STATSD_MAXUDPSIZE=512 | ||
# FLASK_STATSD_IPV6=false | ||
# Sampling rate, 0.0-1.0, default 1 logs 100% | ||
# FLASK_STATSD_RATE=1 | ||
# FLASK_STATSD_TAGS=false | ||
# Log all Flask requests (time to serve, response status code) | ||
# FLASK_STATSD_REQUEST_LOG=true | ||
# Log all WTForms validations (when using baseframe.forms.Form subclass) | ||
# FLASK_STATSD_FORM_LOG=true | ||
|
||
# --- Redis Queue and Redis cache (use separate dbs to isolate) | ||
# Redis server host | ||
REDIS_HOST=localhost | ||
# RQ and cache | ||
FLASK_RQ_REDIS_URL=redis://${REDIS_HOST}:6379/1 | ||
FLASK_CACHE_TYPE=flask_caching.backends.RedisCache | ||
FLASK_CACHE_REDIS_URL=redis://${REDIS_HOST}:6379/0 | ||
|
||
# --- Database configuration | ||
DB_HOST=localhost | ||
FLASK_SQLALCHEMY_DATABASE_URI='postgresql:///hasjob' | ||
|
||
# --- Email configuration | ||
# SMTP mail server ('localhost' if Postfix is configured as a relay email server) | ||
FLASK_MAIL_SERVER=localhost | ||
# If not using localhost, SMTP will need authentication | ||
# Port number (25 is default, but 587 is more likely for non-localhost) | ||
FLASK_MAIL_PORT=25 | ||
# Port 25 uses neither TLS nor SSL. Port 587 uses TLS and port 465 uses SSL (obsolete) | ||
FLASK_MAIL_USE_TLS=false | ||
FLASK_MAIL_USE_SSL=false | ||
# Authentication if using port 587 or 465 | ||
FLASK_MAIL_USERNAME=null | ||
FLASK_MAIL_PASSWORD=null | ||
# Default "From:" address in email | ||
FLASK_MAIL_DEFAULT_SENDER="Hasjob <sender@example.com>" | ||
|
||
# --- App configuration | ||
# Support email and phone numbers (must be syntactically valid) | ||
FLASK_SITE_SUPPORT_EMAIL=support@example.com | ||
# Posting throttle limit | ||
FLASK_THROTTLE_LIMIT=5 | ||
|
||
# --- GeoIP databases for IP address geolocation (used in account settings) | ||
# Obtain a free license key from Maxmind, install geoipupdate, place the account id and | ||
# key in GeoIP.conf and enable the GeoLite2-ASN database. The location of GeoIP.conf | ||
# varies between Ubuntu and macOS. | ||
# https://support.maxmind.com/hc/en-us/articles/4407111582235-Generate-a-License-Key | ||
|
||
# Ubuntu: | ||
# sudo add-apt-repository ppa:maxmind/ppa | ||
# sudo apt install geoipupdate | ||
# vim /etc/GeoIP.conf | ||
# sudo geoipupdate -f /etc/GeoIP.conf | ||
# FLASK_GEOIP_PATH=/usr/share/GeoIP/GeoLite2-City.mmdb | ||
|
||
# macOS with Homebrew on Apple Silicon: | ||
# brew install geoipupdate | ||
# vim /opt/homebrew/etc/GeoIP.conf | ||
# geoipupdate -f /opt/homebrew/etc/GeoIP.conf | ||
# FLASK_GEOIP_PATH=/opt/homebrew/var/GeoIP/GeoLite2-City.mmdb | ||
|
||
# --- Logging | ||
# Optional path to log file, or default null to disable file logging | ||
FLASK_LOG_FILE=null | ||
# Optional config for file logging: | ||
# FLASK_LOG_FILE_LEVEL accepts NOTSET, DEBUG, INFO, WARNING (default), ERROR, CRITICAL | ||
# FLASK_LOG_FILE_DELAY (bool, default true, delays log file creation until first log) | ||
# FLASK_LOG_FILE_ROTATE (bool, default true, controls logrotate on the basis of time) | ||
# FLASK_LOG_FILE_ROTATE_WHEN (default "midnight", other options: S, M, H, D, W0-W6) | ||
# FLASK_LOG_FILE_ROTATE_COUNT (count of old files to keep, default 7 for a week's worth) | ||
# FLASK_LOG_FILE_ROTATE_UTC (default false, if set uses UTC for midnight and W0-W6) | ||
|
||
# List of email addresses to send error reports with traceback and local var dump | ||
# This requires SMTP config (above) | ||
FLASK_LOG_EMAIL_TO='["webmaster@example.com"]' | ||
# Additional options: FLASK_LOG_EMAIL_FROM, defaults to FLASK_MAIL_DEFAULT_SENDER | ||
|
||
# Send error reports to a Telegram chat | ||
FLASK_LOG_TELEGRAM_CHATID=null | ||
# Use these bot API credentials (configure your bot at https://t.me/botfather) | ||
FLASK_LOG_TELEGRAM_APIKEY=null | ||
# Optional settings: | ||
# FLASK_LOG_TELEGRAM_THREADID (if the chat has topic threads, use a specific thread) | ||
# FLASK_LOG_TELEGRAM_LEVEL=NOTSET, DEBUG, INFO, WARNING (default), ERROR, CRITICAL | ||
|
||
# --- Hasgeek app integrations | ||
FLASK_LASTUSER_SERVER=http://funnel.test:3000 | ||
FLASK_LASTUSER_CLIENT_ID=client_id_from_funnel | ||
FLASK_LASTUSER_CLIENT_SECRET=client_secret_from_funnel | ||
|
||
# --- External app integrations | ||
|
||
|
||
# --- OAuth2 login integrations |