mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 22:50:26 +00:00
clean up SQL config to be inline with the README
This commit is contained in:
parent
9cabb2ef16
commit
af61b51c23
@ -19,7 +19,16 @@ LOG_FILE = 'logfile.log'
|
|||||||
UPLOAD_DIR = os.path.join(basedir, 'upload')
|
UPLOAD_DIR = os.path.join(basedir, 'upload')
|
||||||
|
|
||||||
# DATABASE CONFIG
|
# DATABASE CONFIG
|
||||||
SQLALCHEMY_DATABASE_URI = 'mysql://root:123456@192.168.59.103/pdns' # You'll need MySQL-python
|
#You'll need MySQL-python
|
||||||
|
SQLA_DB_USER = 'powerdnsadmin'
|
||||||
|
SQLA_DB_PASSWORD = 'powerdnsadminpassword'
|
||||||
|
SQLA_DB_HOST = 'mysqlhostorip'
|
||||||
|
SQLA_DB_NAME = 'powerdnsadmin'
|
||||||
|
|
||||||
|
#MySQL
|
||||||
|
SQLALCHEMY_DATABASE_URI = 'mysql://'+SQLA_DB_USER+':'\
|
||||||
|
+SQLA_DB_PASSWORD+'@'+SQLA_DB_HOST+'/'+SQLA_DB_NAME
|
||||||
|
#SQLite
|
||||||
#SQLALCHEMY_DATABASE_URI = 'sqlite:////path/to/your/pdns.db'
|
#SQLALCHEMY_DATABASE_URI = 'sqlite:////path/to/your/pdns.db'
|
||||||
SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository')
|
SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository')
|
||||||
SQLALCHEMY_TRACK_MODIFICATIONS = True
|
SQLALCHEMY_TRACK_MODIFICATIONS = True
|
||||||
|
@ -19,7 +19,17 @@ LOG_FILE = '/dev/stdout'
|
|||||||
UPLOAD_DIR = os.path.join(basedir, 'upload')
|
UPLOAD_DIR = os.path.join(basedir, 'upload')
|
||||||
|
|
||||||
# DATABASE CONFIG
|
# DATABASE CONFIG
|
||||||
SQLALCHEMY_DATABASE_URI = 'mysql://root:PowerDNSAdminPassword@mysqldb/powerdns-admin'
|
#You'll need MySQL-python
|
||||||
|
SQLA_DB_USER = 'powerdnsadmin'
|
||||||
|
SQLA_DB_PASSWORD = 'powerdnsadminpassword'
|
||||||
|
SQLA_DB_HOST = 'mysqlhostorip'
|
||||||
|
SQLA_DB_NAME = 'powerdnsadmin'
|
||||||
|
|
||||||
|
#MySQL
|
||||||
|
SQLALCHEMY_DATABASE_URI = 'mysql://'+SQLA_DB_USER+':'\
|
||||||
|
+SQLA_DB_PASSWORD+'@'+SQLA_DB_HOST+'/'+SQLA_DB_NAME
|
||||||
|
#SQLite
|
||||||
|
#SQLALCHEMY_DATABASE_URI = 'sqlite:////path/to/your/pdns.db'
|
||||||
SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository')
|
SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository')
|
||||||
SQLALCHEMY_TRACK_MODIFICATIONS = True
|
SQLALCHEMY_TRACK_MODIFICATIONS = True
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user