Skip to content
This repository was archived by the owner on Sep 12, 2018. It is now read-only.

Commit 9124375

Browse files
committed
Merge pull request #483 from wking/gunicorn-opts
docker_registry.run: Restore GUNICORN_OPTS functionality
2 parents edcb892 + 2008330 commit 9124375

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docker_registry/run.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ def run_gunicorn():
7777
'-t', env.source('GUNICORN_SILENT_TIMEOUT'),
7878
'-w', env.source('GUNICORN_WORKERS'),
7979
'-b', address,
80+
] + env.source('GUNICORN_OPTS') + [
8081
'docker_registry.wsgi:application'
8182
]
8283

docker_registry/server/env.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
'GUNICORN_GRACEFUL_TIMEOUT': '3600',
1414
'GUNICORN_SILENT_TIMEOUT': '3600',
1515
'GUNICORN_ACCESS_LOG_FILE': '"-"',
16-
'GUNICORN_ERROR_LOG_FILE': '"-"'
16+
'GUNICORN_ERROR_LOG_FILE': '"-"',
17+
'GUNICORN_OPTS': '[]',
1718
}
1819

1920

0 commit comments

Comments
 (0)