Created
August 13, 2021 00:14
-
-
Save nginx-gists/c1864c7280d7bebd71c79014cb2c9515 to your computer and use it in GitHub Desktop.
Updates to NGINX Unit for Summer 2021
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"action": { | |
"share": "/www/data/static/", | |
"chroot": "/www/data/" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"action": { | |
"share": "/www/data/static/", | |
"chroot": "/www/data/", | |
"follow_symlinks": false, | |
"traverse_mounts": false | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"tls": { | |
"certificate": "bundle", | |
"conf_commands": { | |
"ciphersuites": "TLS_AES_128_GCM_SHA2566", | |
"minprotocol": "TLSv1.3" | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"action": { | |
"share": "/www/data/static/", | |
"follow_symlinks": false, | |
"traverse_mounts": false | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"settings": { | |
"http": { | |
"static": { | |
"mime_types": { | |
"text/plain": [ | |
".log", | |
"README", | |
"CHANGES" | |
] | |
} | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"share": "/www/data/known-types-only/", | |
"types": [ | |
"!" | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "external", | |
"executable": "/usr/bin/env", | |
"arguments": [ | |
"node", | |
"--loader", | |
"unit-http/loader.mjs", | |
"--require", | |
"unit-http/loader", | |
"app.js" | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"listeners": { | |
"127.0.0.1:8080": { | |
"pass": "applications/python-app/foo" | |
} | |
... | |
}, | |
"routes": [ | |
... | |
{ | |
"action": { | |
"pass": "applications/python-app/bar" | |
} | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"applications": { | |
"python-app": { | |
"type": "python", | |
"targets": { | |
"foo": { | |
"module": "foo.wsgi", | |
"callable": "foo" | |
}, | |
"bar": { | |
"module": "bar.wsgi", | |
"callable": "bar" | |
} | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"*:80": { | |
"pass": "routes", | |
"tls": { | |
"certificate": [ | |
"bundleA", | |
"bundleB", | |
"bundleC" | |
] | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"share": "/www/data/", | |
"types": [ | |
"!application/x-httpd-php" | |
], | |
"fallback": { | |
"pass": "applications/php" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For a discussion of these files, see Updates to NGINX Unit for Summer 2021