Somes FIx for datamigration and config.example

This commit is contained in:
2025-12-15 11:27:30 +01:00
parent a985840bc8
commit 417bbe021f
2 changed files with 19 additions and 5 deletions

View File

@@ -1,10 +1,12 @@
# L'adresse de base de votre site. # L'adresse de base de votre site.
# example BASE_URL="https://example.com" # example BASE_URL="https://example.com"
# BASE_URL="http://localhost:8000/" # si vous lancez pywallter avec flask run" # BASE_URL="http://localhost:8000/" # si vous lancez pywallter avec flask run"
# Addresse et port sur lequel doit ecouté le service pywallter
HOST="" #ADDRESS IP DOMAIN
PORT="" # A Free port who
BASE_URL="https://example.com/" BASE_URL="https://example.com/"
# Essentiels pour les cookies # Essentiels pour authentifier les cookies
SECRET_KEY="CHANGE-ME" SECRET_KEY="CHANGE-ME"
# Dossier où seront stocker les fichiers # Dossier où seront stocker les fichiers
@@ -20,12 +22,24 @@ EXT_IMG= {'.jpg', '.JPG', '.png', '.PNG', '.gif', '.GIF', '.bmp', '.BMP', '.jpeg
# XMPP = True => Le service est installé et lancer # XMPP = True => Le service est installé et lancer
# XMMP = False => Le service est désactivé # XMMP = False => Le service est désactivé
XMPP_SERVER = False XMPP_SERVER = False
# URL for XMPP Web client
XMPP_WEBSERVICE = "https://that.kitoy.fr"
# Service Mail # Service Mail
# MAIL_SERVER = True => Le service est installé et lancer # MAIL_SERVER = True => Le service est installé et lancer
# MAIL_SERVER = False => Le service est désactivé # MAIL_SERVER = False => Le service est désactivé
MAIL_SERVER = False MAIL_SERVER = False
# URL for email Web client
MAIL_WEBSERVICE = "https//mail.example.fr"
# Doas or sudo # Doas or sudo
SETUID='doas' SETUID='doas'
# Sending email for account recovery
SMTP_SERVER=""
SMTP_PORT=""
SMTP_USER=""
SMTP_PASSWD=""
SENDER_ADDRESS=""

View File

@@ -120,18 +120,18 @@ def db_migrate(database):
if not(lost_password_token_col): if not(lost_password_token_col):
cursor.execute("""ALTER TABLE Users ADD COLUMN Lost_password_token CHAR(64);""") cursor.execute("""ALTER TABLE users ADD COLUMN Lost_password_token CHAR(64);""")
conn.commit() conn.commit()
print ("Ajout du champ Lost_password_token dans la table Users") print ("Ajout du champ Lost_password_token dans la table Users")
if not(totp_col): if not(totp_col):
cursor.execute("""ALTER TABLE Users ADD COLUMN totp CHAR(40);""") cursor.execute("""ALTER TABLE users ADD COLUMN totp CHAR(40);""")
conn.commit() conn.commit()
print ("Ajout du champ totp dans la table Users") print ("Ajout du champ totp dans la table Users")
if not(blog_theme_col): if not(blog_theme_col):
cursor.execute("""ALTER TABLE Blog_posts ADD COLUMN blog_theme TEXT;""") cursor.execute("""ALTER TABLE users ADD COLUMN blog_theme TEXT;""")
conn.commit() conn.commit()
print ("Ajout du champ blog_theme dans la table Blog") print ("Ajout du champ blog_theme dans la table Blog")