Added sample configuration
This commit is contained in:
parent
18a0d48c8c
commit
d99e5ec840
2 changed files with 88 additions and 0 deletions
88
settings/config.py.sample
Normal file
88
settings/config.py.sample
Normal file
|
|
@ -0,0 +1,88 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
# You need install cromosoma for use this.
|
||||
|
||||
#from cromosoma.webmodel import WebModel
|
||||
|
||||
#server_used="wsgiref"
|
||||
|
||||
#Host/IP where bind the server
|
||||
|
||||
port=8080
|
||||
|
||||
debug=True
|
||||
|
||||
reloader=True
|
||||
|
||||
admin_folder='admin'
|
||||
|
||||
host='localhost'
|
||||
|
||||
allowed_ips=[]
|
||||
|
||||
#The theme by default
|
||||
|
||||
theme='default'
|
||||
|
||||
#Base directory for save modules
|
||||
|
||||
base_modules="modules"
|
||||
|
||||
#Type server used for connect to the internet...
|
||||
|
||||
server_used="wsgiref"
|
||||
|
||||
#Module showed in index
|
||||
|
||||
default_module="welcome"
|
||||
|
||||
#Modules with permissions to access for users
|
||||
|
||||
modules=['welcome']
|
||||
|
||||
#Activate sessions?
|
||||
|
||||
session_enabled=True
|
||||
|
||||
#Variables for beaker sessions
|
||||
|
||||
cookie_name = 'paramecio.session'
|
||||
|
||||
session_opts = {
|
||||
'session.type': 'file',
|
||||
'session.cookie_expires': False,
|
||||
'session.data_dir': './sessions',
|
||||
'session.auto': True
|
||||
}
|
||||
|
||||
cache_session_opts = {
|
||||
|
||||
}
|
||||
|
||||
#The base url
|
||||
|
||||
base_url='/'
|
||||
|
||||
#Can be absolute or relative
|
||||
|
||||
media_url='/'
|
||||
|
||||
#SSL support built in server. You need cherrypy installed for use this.
|
||||
|
||||
ssl=False
|
||||
|
||||
# Cert file for ssl
|
||||
|
||||
cert_pem=''
|
||||
|
||||
# Key file for ssl
|
||||
|
||||
privkey_pem=''
|
||||
|
||||
#WARNING: only use this feature in development, not in production.
|
||||
|
||||
yes_static=True
|
||||
|
||||
#Database mysql config, if you want anything...
|
||||
|
||||
#WebModel.connections={'default': {'name': 'default', 'host': 'localhost', 'user': 'root', 'password': '', 'db': 'example', 'charset': 'utf8mb4', 'set_connection': False} }
|
||||
Loading…
Add table
Add a link
Reference in a new issue