Add editorconfig

This commit is contained in:
Christian Mäder 2021-02-08 10:54:08 +01:00
parent f33c647f24
commit 0d25aff744
2 changed files with 45 additions and 34 deletions

11
.editorconfig Normal file
View File

@ -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

View File

@ -1,40 +1,40 @@
{ {
"listeners": { "listeners": {
"*:8080": { "*:8080": {
"pass": "routes" "pass": "routes"
} }
},
"routes": [
{
"match": {
"uri": "/static/*"
},
"action": {
"share": "/opt/netbox/netbox"
}
}, },
"routes": [ {
{ "action": {
"match": { "pass": "applications/netbox"
"uri": "/static/*" }
}, }
"action": { ],
"share": "/opt/netbox/netbox"
}
},
{ "applications": {
"action": { "netbox": {
"pass": "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": { "access_log": "/dev/stdout"
"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"
} }