checkpoint before maillog attempt
This commit is contained in:
parent
cdeb87184a
commit
5b0cd1d22f
@ -3,6 +3,8 @@ from config import Config
|
|||||||
from flask_sqlalchemy import SQLAlchemy
|
from flask_sqlalchemy import SQLAlchemy
|
||||||
from flask_migrate import Migrate
|
from flask_migrate import Migrate
|
||||||
from flask_login import LoginManager
|
from flask_login import LoginManager
|
||||||
|
import logging
|
||||||
|
from logging.handlers import SMTPHandler
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
app.config.from_object(Config)
|
app.config.from_object(Config)
|
||||||
|
@ -8,4 +8,11 @@ class Config:
|
|||||||
#SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'zapp.db')
|
#SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'zapp.db')
|
||||||
SQLALCHEMY_DATABASE_URI = 'mariadb+mariadbconnector://flasku:' + os.environ.get('MYSQL_PASSWORD') + '@db:3306/flask'
|
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')]
|
||||||
|
|
||||||
|
|
||||||
|
@ -37,6 +37,7 @@ services:
|
|||||||
- MYSQL_PASSWORD=${DOTENV_MYSQL_FLASK_PASSWORD}
|
- MYSQL_PASSWORD=${DOTENV_MYSQL_FLASK_PASSWORD}
|
||||||
- TOKEN_I=${DOTENV_TOKEN_I}
|
- TOKEN_I=${DOTENV_TOKEN_I}
|
||||||
- TOKEN_C=${DOTENV_TOKEN_C}
|
- TOKEN_C=${DOTENV_TOKEN_C}
|
||||||
|
- ADMIN_EMAIL=${ADMIN_EMAIL}
|
||||||
#ports:
|
#ports:
|
||||||
# - 8000:8000
|
# - 8000:8000
|
||||||
expose:
|
expose:
|
||||||
|
@ -4,5 +4,9 @@ server {
|
|||||||
location / {
|
location / {
|
||||||
proxy_pass http://backend:8000;
|
proxy_pass http://backend:8000;
|
||||||
}
|
}
|
||||||
|
location /gutty{
|
||||||
|
proxy_pass http://gitea:3000;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -4,5 +4,9 @@ server {
|
|||||||
location / {
|
location / {
|
||||||
proxy_pass http://backend:8000;
|
proxy_pass http://backend:8000;
|
||||||
}
|
}
|
||||||
|
location /gutty {
|
||||||
|
proxy_pass http://gitea:3000;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user