-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.sh
More file actions
34 lines (25 loc) · 1.01 KB
/
config.example.sh
File metadata and controls
34 lines (25 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
# Example configuration script for the gunlinux.ru blog application
# Copy this file to config.sh and modify as needed
# Secret key for Flask sessions and CSRF protection
# Generate a strong random key for production
export SECRET_KEY="change-this-to-a-strong-random-string-in-production"
# Database configuration
# SQLite (development)
export SQLALCHEMY_DATABASE_URI="sqlite:///tmp/dev.db"
# For PostgreSQL:
# export SQLALCHEMY_DATABASE_URI="postgresql://username:password@localhost/database_name"
# For MySQL:
# export SQLALCHEMY_DATABASE_URI="mysql://username:password@localhost/database_name"
# Application environment
# Options: development, testing, production
export FLASK_ENV="development"
# Web server port
export PORT="5555"
# Yandex verification code (optional)
# export YANDEX_VERIFICATION="your-yandex-verification-code"
# Yandex Metrika ID (optional)
# export YANDEX_METRIKA="your-yandex-metrika-id"
# Cache configuration (optional)
# export CACHE_TYPE="SimpleCache"
# export CACHE_DEFAULT_TIMEOUT="300"