Files
openstack-ansible-os_skyline/templates/gunicorn.py.j2
Dmitriy Rabotyagov d707c8c0fc Switch nginx with Apache
As we're trying to have a single web server across all services,
it makes sense to switch to using Apache right away.

Change-Id: I1bc665430c70040b07c194bba36832a42ccde343
2024-05-14 10:12:01 +00:00

58 lines
1.6 KiB
Django/Jinja

# Copyright 2022 Cloudnull
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import multiprocessing
bind = "127.0.0.1:8443"
workers = {{ skyline_api_workers }}
worker_class = "uvicorn.workers.UvicornWorker"
timeout = 3600
keepalive = 5
reuse_port = True
proc_name = "skyline"
logconfig_dict = {
"version": 1,
"disable_existing_loggers": False,
"root": {"level": "DEBUG", "handlers": ["console"]},
"loggers": {
"gunicorn.error": {
"level": "DEBUG",
"handlers": ["console"],
"propagate": 0,
"qualname": "gunicorn_error",
},
"gunicorn.access": {
"level": "DEBUG",
"handlers": ["console"],
"propagate": 0,
"qualname": "access",
},
},
"handlers": {
"console": {
"class": "logging.StreamHandler",
"level": "DEBUG",
"formatter": "generic",
},
},
"formatters": {
"generic": {
"format": "%(asctime)s.%(msecs)03d %(process)d %(levelname)s [-] %(message)s",
"datefmt": "[%Y-%m-%d %H:%M:%S %z]",
"class": "logging.Formatter",
}
},
}