fallback config #112

unbit opened this Issue Jan 12, 2013 · 0 comments


None yet

1 participant

unbit commented Jan 12, 2013

As it is becoming really common to install uWSGI on embedded systems, having a "reset to factory defaults" behaviour could be a kick-ass feature.

uwsgi --fallback-config safe_config.ini --ini new_config.ini

if uwsgi fails (exit code 1) the instance is binary patched (as simple execve() ) with

uwsgi safe_config.ini

obviously hosting services can abuse it too ;)

Note: try to place fallback-config directive on top of your config tree to avoid exit(1) being called before its setup

fallback-config = safe_config.ini
socket =
master = true
psgi = app.psgi

@unbit unbit closed this in e8ea1a5 Jul 26, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment