Skip to content

Instantly share code, notes, and snippets.

@nginx-gists
Created August 13, 2021 00:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nginx-gists/c1864c7280d7bebd71c79014cb2c9515 to your computer and use it in GitHub Desktop.
Save nginx-gists/c1864c7280d7bebd71c79014cb2c9515 to your computer and use it in GitHub Desktop.
Updates to NGINX Unit for Summer 2021
{
"action": {
"share": "/www/data/static/",
"chroot": "/www/data/"
}
}
{
"action": {
"share": "/www/data/static/",
"chroot": "/www/data/",
"follow_symlinks": false,
"traverse_mounts": false
}
}
{
"tls": {
"certificate": "bundle",
"conf_commands": {
"ciphersuites": "TLS_AES_128_GCM_SHA2566",
"minprotocol": "TLSv1.3"
}
}
}
{
"settings": {
"http": {
"static": {
"mime_types": {
"text/plain": [
".log",
"README",
"CHANGES"
]
}
}
}
}
}
{
"share": "/www/data/known-types-only/",
"types": [
"!"
]
}
{
"type": "external",
"executable": "/usr/bin/env",
"arguments": [
"node",
"--loader",
"unit-http/loader.mjs",
"--require",
"unit-http/loader",
"app.js"
]
}
{
"listeners": {
"127.0.0.1:8080": {
"pass": "applications/python-app/foo"
}
...
},
"routes": [
...
{
"action": {
"pass": "applications/python-app/bar"
}
}
]
}
{
"applications": {
"python-app": {
"type": "python",
"targets": {
"foo": {
"module": "foo.wsgi",
"callable": "foo"
},
"bar": {
"module": "bar.wsgi",
"callable": "bar"
}
}
}
}
}
{
"*:80": {
"pass": "routes",
"tls": {
"certificate": [
"bundleA",
"bundleB",
"bundleC"
]
}
}
}
{
"share": "/www/data/",
"types": [
"!application/x-httpd-php"
],
"fallback": {
"pass": "applications/php"
}
}
@nginx-gists
Copy link
Author

For a discussion of these files, see Updates to NGINX Unit for Summer 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment