Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ai
autoca
Commits
eb766709
Commit
eb766709
authored
Jan 07, 2013
by
ale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use the common environment variable APP_CONFIG to load Flask configs
parent
3e735d82
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
autoca/ca_app.py
autoca/ca_app.py
+1
-1
autovpn/vpn_app.py
autovpn/vpn_app.py
+1
-1
No files found.
autoca/ca_app.py
View file @
eb766709
...
...
@@ -97,7 +97,7 @@ def make_app(ca_instance, settings={}):
app
.
register_blueprint
(
ca_app
)
if
settings
:
app
.
config
.
update
(
settings
)
app
.
config
.
from_envvar
(
'
CA_
APP_
SETTINGS
'
,
silent
=
True
)
app
.
config
.
from_envvar
(
'APP_
CONFIG
'
,
silent
=
True
)
app
.
ca
=
ca_instance
return
app
...
...
autovpn/vpn_app.py
View file @
eb766709
...
...
@@ -397,7 +397,7 @@ def new_cert_dl():
def
make_app
(
config
=
{}):
app
=
Flask
(
__name__
)
app
.
config
.
update
(
config
)
app
.
config
.
from_envvar
(
'
VPN_APP_SETTINGS
'
,
silent
=
True
)
app
.
config
.
from_envvar
(
'
APP_CONFIG
'
,
silent
=
True
)
app
.
signer
=
Signer
(
app
.
config
[
'SIGNER_SECRET'
])
app
.
zipcache
=
ZipCache
(
app
.
config
[
'CACHE_DIR'
])
app
.
register_blueprint
(
vpn_admin
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment