| 11 Nov 2023 |
peter-lustig | In reply to @c0ba1t:matrix.org Why should the nginx service run the node build command? that is the command I need to run the application | 21:51:31 |
peter-lustig | start the app | 21:51:39 |
Cobalt | Okay, then nginx won't run any command. Your config only describes reverse proxy that redirects all requests (for the vhost) to the (presumable) service running on port 5173. | 21:53:36 |
Cobalt | Presumably, the systemd service starts a server on localhost:5137? | 21:55:22 |
peter-lustig | In reply to @c0ba1t:matrix.org Presumably, the systemd service starts a server on localhost:5137? yeah | 21:56:36 |
Cobalt | Okay, then that should work. If the systems service starts you should be good to go from the NodeJS side. | 21:57:36 |
peter-lustig | In reply to @c0ba1t:matrix.org Okay, then that should work. If the systems service starts you should be good to go from the NodeJS side. so you think what I have is correct? | 21:57:52 |
Cobalt | Maybe? You have only posted an excerpt from an NGINX vhost config with an `example.com` domain and a systemd unit. | 21:59:49 |
Cobalt | But it looks correct | 22:00:01 |
peter-lustig | In reply to @c0ba1t:matrix.org Maybe? You have only posted an excerpt from an NGINX vhost config with an `example.com` domain and a systemd unit. ok but I think that root = is useless then | 22:04:53 |
peter-lustig | i need proxypass for the backend though right? | 22:06:42 |
Cobalt | Yes | 22:08:33 |
Cobalt | 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 |
Cobalt | * 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 |