-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.yml
executable file
·199 lines (158 loc) · 5.58 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
#
# $$$$$$\ $$\ $$$$$$$$\
# $$ __$$\ $$ | $$ _____|
# $$ / \__|$$ | $$$$$$\ $$\ $$\ $$\ $$ | $$$$$$\ $$\ $$\
# \$$$$$$\ $$ |$$ __$$\ $$ | $$ | $$ |$$$$$\ $$ __$$\ \$$\ $$ |
# \____$$\ $$ |$$ / $$ |$$ | $$ | $$ |$$ __|$$ / $$ | \$$$$ /
# $$\ $$ |$$ |$$ | $$ |$$ | $$ | $$ |$$ | $$ | $$ | $$ $$<
# \$$$$$$ |$$ |\$$$$$$ |\$$$$$\$$$$ |$$ | \$$$$$$ |$$ /\$$\
# \______/ \__| \______/ \_____\____/ \__| \______/ \__/ \__|
#
#
# 2014
# created by Hugues MaX hugues@max4mail.com
# This is the main configuration file of your Dancer app
# env-related settings should go to environments/$env.yml
# all the settings in this file will be loaded at Dancer's startup.
# Your application's name
appname: "slowfox"
# The default layout to use for your application (located in
# views/layouts/main.tt)
layout: "main"
# Suppression de la ligne X-Powered-By: Perl Dancer 1.312 dans
# les Headers Apache (0/1)
server_tokens: 0
# when the charset is set to UTF-8 Dancer will handle for you
# all the magic of encoding and decoding. You should not care
# about unicode within your app when this setting is set (recommended).
charset: "UTF-8"
template: "template_toolkit"
engines:
template_toolkit:
encoding: 'utf8'
start_tag: '[%'
end_tag: '%]'
serializer: 'JSON'
#environment: 'production'
environment: 'development'
# gestion des sessions d'utilisateur dans la base de données
session: 'YAML'
#session: 'Redis'
session_name: session.slowfox
#A ajouter pour forcer l'envoie en ssl des cookies de sessions
#session_secure: true
# Sel de l'application - attention de ne pas perdre
# Longueur 16ocet / 23 caractères
salt: 'AIfoBACaIDjYUc1yLfO3ou'
DBNAME: slowfox
plugins:
Database:
connections:
slowfox:
driver: 'mysql'
database: 'slowfox'
host: 'localhost'
port: 3306
username: 'root'
password: ''
connection_check_threshold: 10
dbi_params:
RaiseError: 1
AutoCommit: 1
mysql_enable_utf8 : 1
charset: utf8
#on_connect_do: ["SET NAMES 'utf8'", "SET CHARACTER SET 'utf8'" ]
log_queries: 1
# If you want to use Redis ( not only in session manager )
# Redis:
# server: '127.0.0.1:6379'
# debug: 0
#password: 'Aemah3aiSahji5PoyeKae0maPhoo7oChOhK8ieyu'
#encoding: utf-8
# reconnect: 60
# database: 1
# Module support MultiLangue
############################
# I18N:
# lang_default: fr
# name_param: lang
# name_session: language
#ROLE BASE ACCESS CONTROLE avec Mysql
#Permet de manager les acces et les droits
Auth::RBAC:
permissions:
class: Config
options:
control:
admin:
permissions:
manage accounts:
operations:
- view
- create
- update
- delete
user:
permissions:
manage accounts:
operations:
- view
- create
guests:
permissions:
manage accounts:
operations:
- view
voip:
permissions:
credentials:
class: MySQL
options:
handle: slowfox
# Liste des roles avec les droits correspondants ( attention ne supporte pas les accents dans les commentaires)
# Attention de bien avoir la liste a jour entre la partie RBAC et ROLE_LIST
ROLE_LIST:
admin:
Def: 'SuperUser, avec tous les droits'
user:
Def: 'Utilisateur Simple sans droit particulier'
guests:
Def: 'User Simple'
voip:
Def: 'Access au service de Voix sur IP, Attention cela permet de telephoner !'
#####################
VOIPSERVER: '192.168.1.10'
VOIPPORT: '4569'
VOIPCODEC: 'iLBC 30'
STUNHOST: '192.168.1.10'
STUNPORT: '3478'
# Add IP for VOIP allowed
##############################################
#huguestestInterne = 88.88.88.1
#huguesIpExterne = 88.88.88.2
ALLOWEDIP: '192.168.0.19, 88.88.88.2'
#IP du Serveur SMTP pour envoyer des emails
SMTP: '88.88.88.88'
# Chemin d'accès des fichiers temporaire pour le download
PUBLICTMP : '/home/slowfox/public/tmp/'
# VAT TAX
TVA : 0.2
#Chemin d'acces aux fichiers stockés sur le disque
PATHFILES : '/home/slowfox/public/files'
#REDIS SESSION
#################
# yum install Redis on redhat/Centos
# apt-get install redis on Debian/Ubuntu
# add perl module: cpanm Dancer::Session::Redis
# add vm.overcommit_memory = 1 à /etc/sysctl.conf
# OR faire sysctrl -w vm.overcommit_memory=1
# DO chkconfig redis on on redhat/Centos
# redis.conf is in slowfox/doc/redis.conf
# Set password if necessary
#redis_session:
# server: '127.0.0.1:6379'
#password: 'Aemah3aiSahji5PoyeKae0maPhoo7oChOhK8ieyu'
# database: 0
# expire: 14400
# debug: 0
# ping: 5