From 0d25aff744a44e93693c20629a06245a72ddd380 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20M=C3=A4der?= Date: Mon, 8 Feb 2021 10:54:08 +0100 Subject: [PATCH] Add editorconfig --- .editorconfig | 11 +++++++ docker/nginx-unit.json | 68 +++++++++++++++++++++--------------------- 2 files changed, 45 insertions(+), 34 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..dba40a8 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,11 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true +charset = utf-8 +indent_style = space +indent_size = 2 + +[configuration/**.py] +indent_size = 4 diff --git a/docker/nginx-unit.json b/docker/nginx-unit.json index 80673ae..fbe8c2b 100644 --- a/docker/nginx-unit.json +++ b/docker/nginx-unit.json @@ -1,40 +1,40 @@ { - "listeners": { - "*:8080": { - "pass": "routes" - } + "listeners": { + "*:8080": { + "pass": "routes" + } + }, + + "routes": [ + { + "match": { + "uri": "/static/*" + }, + "action": { + "share": "/opt/netbox/netbox" + } }, - "routes": [ - { - "match": { - "uri": "/static/*" - }, - "action": { - "share": "/opt/netbox/netbox" - } - }, + { + "action": { + "pass": "applications/netbox" + } + } + ], - { - "action": { - "pass": "applications/netbox" - } - } - ], + "applications": { + "netbox": { + "type": "python 3", + "path": "/opt/netbox/netbox/", + "module": "netbox.wsgi", + "home": "/opt/netbox/venv", + "processes": { + "max": 4, + "spare": 1, + "idle_timeout": 120 + } + } + }, - "applications": { - "netbox": { - "type": "python 3", - "path": "/opt/netbox/netbox/", - "module": "netbox.wsgi", - "home": "/opt/netbox/venv", - "processes": { - "max": 4, - "spare": 1, - "idle_timeout": 120 - } - } - }, - - "access_log": "/dev/stdout" + "access_log": "/dev/stdout" }