Skip to content
This repository was archived by the owner on Oct 24, 2021. It is now read-only.

Commit 455c067

Browse files
committed
Documented Meteor environment variables UNIX_SOCKET_PATH and UNIX_SOCKET_PERMISSIONS
1 parent 5abbc11 commit 455c067

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

source/environment-variables.md

+9
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,13 @@ Used to generate URLs to your application by, among others, the accounts package
9292
Used to pass flags/variables to Node inside Meteor build. For example you can use this to pass a link to icu data: `TOOL_NODE_FLAGS="--icu-data-dir=node_modules/full-icu"`
9393
For full list of available flags see the [Node documentation](https://nodejs.org/dist/latest-v12.x/docs/api/cli.html).
9494

95+
## UNIX_SOCKET_PATH
96+
(_production_)
97+
98+
Configure Meteor's HTTP server to listen on a UNIX socket file path (e.g. `UNIX_SOCKET_PATH=/tmp/meteor.sock`) instead of a TCP port. This is useful when running a local reverse proxy server like Nginx to handle client HTTP requests and direct them to your Meteor application. Leveraging UNIX domain sockets for local communication on the same host avoids the Operating System overhead required by TCP based communication and can also improve security. This UNIX socket file is created when Meteor starts and removed when Meteor exits.
99+
100+
## UNIX_SOCKET_PERMISSIONS
101+
(_production_)
102+
103+
This overrides the default UNIX file permissions on the UNIX socket file configured in `UNIX_SOCKET_PATH`. For example, `UNIX_SOCKET_PERMISSIONS=660` would set read/write permissions for both the user and group.
95104

0 commit comments

Comments
 (0)