-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
9 changed files
with
84 additions
and
67 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 |
---|---|---|
@@ -1,40 +1,54 @@ | ||
APP_CONFIG = "test" # dev, test, prod are the options | ||
FLASK_BLOG_PORT = 9080 | ||
FLASK_ADMIN_PORT = 5001 | ||
FLASK_HOST = 0.0.0.0 | ||
DB_USER = "root" # change according to the env | ||
DB_PASSWORD = "root123" # change according to the env | ||
#DB_DATABASE_NAME = "blog" # change according to the env | ||
DB_DRIVER = "mysql" | ||
#DB_HOST = "mysql_db" # use while on docker | ||
#Local computer running DB | ||
#DB_HOST = "192.168.56.99" | ||
DB_HOST = "localhost" | ||
#DB_NAME = "blog" | ||
DB_NAME = "test_blog" | ||
DB_PORT = "3306" | ||
# dev, test, prod are the options | ||
APP_CONFIG=dev | ||
FLASK_BLOG_PORT=9090 | ||
FLASK_ADMIN_PORT=5005 | ||
FLASK_HOST=0.0.0.0 | ||
# change according to the env | ||
DB_USER=root | ||
# change according to the env | ||
DB_PASSWORD=strongpassword | ||
# change according to the env | ||
DB_DRIVER=mysql | ||
# use while on docker. Cannot change the container name | ||
DB_HOST=mysql_db | ||
#Local computer running DB (If running db separetly) | ||
#DB_HOST=localhost | ||
# Database name of your wish | ||
DB_NAME=yourblogdb | ||
# Change to test db when working with testing | ||
#DB_NAME=test_blog | ||
# Default mysql port specification | ||
DB_PORT=3306 | ||
|
||
#ReCaptcha Config | ||
RECAPTCHA_SITE_KEY = "6LfHcysUAAAAALzzACVKdZD6vsvzQavcIAOR5e4b" | ||
RECAPTCHA_SITE_SECRET = "6LfHcysUAAAAANsjuS8ZpyCUdcFUITJ9Spt1hVuO" | ||
RECAPTCHA_SITE_KEY=YOURRECAPTCHA_SITE_KEY | ||
RECAPTCHA_SITE_SECRET=YOURRECAPTCHA_SECRET | ||
|
||
#SMTP Configs (Email and password of the blog email generated) | ||
MAIL_USERNAME=admin@xyz.com | ||
MAIL_PASSWORD=verystrongpassword | ||
|
||
# Caching app config. (Leave it default for basic caching) | ||
CACHE_TYPE=simple | ||
CACHE_DEFAULT_TIMEOUT=300 | ||
|
||
# Upload of image folder | ||
SECRET_KEY=yoursecret | ||
UPLOAD_FOLDER=uploads | ||
|
||
#SMTP Configs | ||
MAIL_USERNAME = "blog.noreply.13241@gmail.com" | ||
MAIL_PASSWORD = "sxylkelwpwpdmujx" | ||
# The setting for admin user/password. This will be anyway changed | ||
ADMIN_USERNAME=youradminusername | ||
PASSWORD=useradminpassword | ||
# The first name, accessible for posting | ||
F_NAME=AuthorFirstName | ||
EMAIL=AuthorEmailId | ||
|
||
#Default post limit leave it to 10 | ||
post_init_limit=10 | ||
|
||
# Caching app config | ||
CACHE_TYPE = "simple" | ||
CACHE_DEFAULT_TIMEOUT = 300 | ||
SECRET_KEY = 'a1fc6623c9a17ea21d882666dc54cd50a68654a136c448ab26adfebce7ed932e98fdea' | ||
UPLOAD_FOLDER = "uploads" | ||
ADMIN_USERNAME = "admin" # The setting for admin user/password | ||
PASSWORD = "root123" | ||
F_NAME = "Subash" # The first name, accessible for posting | ||
EMAIL = "subash.prakash0807@gmail.com" | ||
post_init_limit = 10 | ||
#Blog content details | ||
blog_header = "Subash Blog" | ||
blog_subheader = "Blog on daily activities" | ||
social_git = "https://www.github.com/prakass1" | ||
social_linkedin = "https://www.linkedin.com/in/subash-prakash-82a1543b/" | ||
social_stack = "https://stackoverflow.com/users/3414466/coldy?tab=profile" | ||
blog_header="Subash Blog" | ||
blog_subheader="Blog on daily activities" | ||
social_git="https://www.github.com/prakass1" | ||
social_linkedin="https://www.linkedin.com/in/subash-prakash-82a1543b/" | ||
social_stack="https://stackoverflow.com/users/3414466/coldy?tab=profile" |
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
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
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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
from flask_sqlalchemy import SQLAlchemy | ||
from flask_caching import Cache | ||
from flask_mail import Mail | ||
|
||
|
||
db = SQLAlchemy() | ||
cache = Cache() | ||
mail = Mail() |
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,22 @@ | ||
version: "3.3" | ||
networks: | ||
backend-network: | ||
services: | ||
mysql_db: | ||
image: "mysql:latest" | ||
restart: "always" | ||
command: "--default-authentication-plugin=mysql_native_password" | ||
container_name: "mysql_db" | ||
env_file: ".env" | ||
volumes: | ||
- mysql-data:/var/lib/mysql | ||
ports: | ||
- "3308:${DB_PORT}" | ||
environment: | ||
- "MYSQL_ROOT_PASSWORD=${DB_PASSWORD}" | ||
- "MYSQL_DATABASE=${DB_NAME}" | ||
networks: | ||
- "backend-network" | ||
|
||
volumes: | ||
mysql-data: |
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