diff --git a/README.md b/README.md index b68a7de..4e87cf0 100644 --- a/README.md +++ b/README.md @@ -192,3 +192,4 @@ The service is configured by Environment Variable: | WSGI_TIMEOUT | `5` | WSGI timeout. | | GUNICORN_TMPFS_DIR | `None` |The working directory for the gunicorn workers. | | WSGI_WORKERS | `2` | The number of workers per CPU. | +| UNLISTED_ICON_SETS | `'babs'`| Comma separated list of icon set to un-list. Those sets won't be listed in the /sets endpoint. | diff --git a/app/settings.py b/app/settings.py index 00c460b..41a3d2a 100644 --- a/app/settings.py +++ b/app/settings.py @@ -15,9 +15,7 @@ ) COLORABLE_ICON_SETS = ['default'] -LEGACY_ICON_SETS = [] -UNRELEASED_ICON_SETS = ['babs-de', 'babs-fr', 'babs-it'] -UNLISTED_ICON_SETS = LEGACY_ICON_SETS + UNRELEASED_ICON_SETS +UNLISTED_ICON_SETS = os.environ.get('UNLISTED_ICON_SETS', 'babs').split(',') ICON_SET_LANGUAGE = {'babs-de': 'de', 'babs-fr': 'fr', 'babs-it': 'it'} DEFAULT_COLOR = {"r": '255', "g": '0', "b": '0'} DEFAULT_ICON_SIZE = 48