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" }