flask site buildout #2

Merged
finn merged 25 commits from mgtut1 into master 2024-08-05 08:41:03 +00:00
5 changed files with 18 additions and 0 deletions
Showing only changes of commit 5b0cd1d22f - Show all commits

View File

@ -3,6 +3,8 @@ from config import Config
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_login import LoginManager
import logging
from logging.handlers import SMTPHandler
app = Flask(__name__)
app.config.from_object(Config)

View File

@ -8,4 +8,11 @@ class Config:
#SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'zapp.db')
SQLALCHEMY_DATABASE_URI = 'mariadb+mariadbconnector://flasku:' + os.environ.get('MYSQL_PASSWORD') + '@db:3306/flask'
MAIL_SERVER = 'pmb'
MAIL_PORT = 25
MAIL_USE_TLS = False
MAIL_USERNAME = ''
MAIL_PASSWORD = ''
ADMINS = [os.environ.get('ADMIN_EMAIL')]

View File

@ -37,6 +37,7 @@ services:
- MYSQL_PASSWORD=${DOTENV_MYSQL_FLASK_PASSWORD}
- TOKEN_I=${DOTENV_TOKEN_I}
- TOKEN_C=${DOTENV_TOKEN_C}
- ADMIN_EMAIL=${ADMIN_EMAIL}
#ports:
# - 8000:8000
expose:

View File

@ -4,5 +4,9 @@ server {
location / {
proxy_pass http://backend:8000;
}
location /gutty{
proxy_pass http://gitea:3000;
}
}

View File

@ -4,5 +4,9 @@ server {
location / {
proxy_pass http://backend:8000;
}
location /gutty {
proxy_pass http://gitea:3000;
}
}