Nix NodeJS | 210 Members | |
| 61 Servers |
| Sender | Message | Time |
|---|---|---|
| 11 Nov 2023 | ||
| Maybe? You have only posted an excerpt from an NGINX vhost config with an `example.com` domain and a systemd unit. | 21:59:49 | |
| But it looks correct | 22:00:01 | |
In reply to @c0ba1t:matrix.orgok but I think that root = is useless then | 22:04:53 | |
| i need proxypass for the backend though right? | 22:06:42 | |
| Yes | 22:08:33 | |
| Depending on the service you might also want `services.nginx.virtualHosts.<name>.locations.<name>.recommendedProxySettings` and `services.nginx.virtualHosts.<name>.locations.<name>.proxyPass` | 22:10:43 | |
| * Depending on the service you might also want `services.nginx.virtualHosts.<name>.locations.<name>.recommendedProxySettings` and `services.nginx.virtualHosts.<name>.locations.<name>.proxyPass` | 22:10:52 | |
| * Depending on the service you might also want `services.nginx.virtualHosts.<name>.locations.<name>.recommendedProxySettings` and `services.nginx.virtualHosts.<name>.locations.<name>.proxyWebsockets` | 22:11:11 | |
| 12 Nov 2023 | ||
| ok Cobalt getting it started to fail | 01:14:37 | |
| the systemd service | 01:14:39 | |
| unfortunately there are no closer details | 01:14:45 | |
but I get bad gateway on nginx | 01:16:50 | |
| so idk | 01:16:53 | |
| please help if you have an idea | 01:53:06 | |
| The NGINX bad gateway error is NGINX's way of reporting that it couldn't reach the service behind proxy pass. | 08:17:05 | |
In reply to @peter-lustig:matrix.orgYou might want to look into the journal (journalctl -xeu ) to inspect your app logs. | 08:18:18 | |
| * In reply to @peter-lustig:matrix.org the systemd service If your app öogs to stderr/stdout, you might want to look into the journal (journalctl -xeu ) to inspect your app logs | 08:19:24 | |
| * In reply to peter-lustig the systemd service If your app logs to stderr/stdout, you might want to look into the journal (journalctl -xeu ) to inspect your app logs | 08:19:51 | |
In reply to @c0ba1t:matrix.orgYes, I am aware of that. But journalctl for the service only gives me `The unit has entered the 'failed' state with result 'exit-code' | 13:10:21 | |
but i execute the command PORT=5173 node . and if I test that locally everything just works | 13:11:59 | |
| Here is my current systemd service:
| 13:17:00 | |
| Okay, have you tried going to the workingdirectory and executing node there? | 13:19:10 | |
POST=5173 is not a command | 13:19:20 | |
If you are trying to set an environment variable, set Environment = "PORT=5173 | 13:19:31 | |
* If you are trying to set an environment variable, set Environment = "PORT=5173" | 13:19:33 | |
* PORT=5173 is not a command | 13:19:51 | |
| systemd doesn't run this stuff through bash | 13:20:00 | |
In reply to @lily:lily.flowers it is just a command line from the docs: PORT, HOST and SOCKET_PATHpermalink HOST=127.0.0.1 PORT=4000 node build SOCKET_PATH=/tmp/socket node build | 13:20:16 | |
In reply to @lily:lily.flowers* it is just a command line argument from the docs: PORT, HOST and SOCKET_PATHpermalink HOST=127.0.0.1 PORT=4000 node build SOCKET_PATH=/tmp/socket node build | 13:20:21 | |
| It's a bash-ism, not a command line argument | 13:20:41 | |