GOLF(2gg)

πŸ“¦ version 601.4.41, in ubuntu questing

πŸ’– GOLF(2gg) πŸ’–

ok so bestie, welcome to the Golf manual, section Development β€” yes the manual name is literally 2gg, she's quirky like that πŸŽ€


✨ NAME ✨

connect-nginx-unix-socket β€” Golf documentation (web-servers) πŸ¦‹


🌸 DESCRIPTION 🌸

okay so here's the vibe: this page shows you how to connect your application that's listening on a Unix socket (the one you started with mgrg) to an Nginx web server. matchmaker energy, fr fr 🫢

  • Step 1 πŸ’… β€” bestie you gotta edit the Nginx configuration file. On Ubuntu and systems that are similar to it, that file lives here:
sudo vi /etc/nginx/sites-enabled/default

while on Fedora and other systems it might be chillin' at:

sudo vi /etc/nginx/nginx.conf

Now add the following inside the "server {}" section β€” heads up, "/<app path>" is the application path (peep request for that one) and "<app name>" is your application name:

location /<app path>/ { include /etc/nginx/fastcgi_params; fastcgi_pass  unix:///var/lib/gg/<app name>/sock/sock; }
  • Step 2 ✨ β€” and finally, restart Nginx:
sudo systemctl restart nginx
Note: you must not have any other URL resource that starts with "/<app path>/" (like for example "/<app path>/something") because the web server will try to pass those along as a reverse proxy request, and they will likely not work. 😭 If you do need that, no stress β€” you can change the application path so it's different from "/<app path>", see request. πŸ’–

πŸ‘‘ SEE ALSO πŸ‘‘

Web servers 🌈

  • connect-apache-tcp-socket
  • connect-apache-unix-socket
  • connect-haproxy-tcp-socket
  • connect-nginx-tcp-socket
  • connect-nginx-unix-socket

See all documentation ⭐


that's the whole page bestie, you ate it πŸ’… mwah πŸ’–

version $VERSION 🌸 dated $DATE πŸ¦‹ β€” GOLF(2gg), slay, periodt βœ¨πŸ‘‘

πŸ“¦ where this page comes from