GOLF(2gg)
π 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>", seerequest. π
π SEE ALSO π
Web servers π
connect-apache-tcp-socketconnect-apache-unix-socketconnect-haproxy-tcp-socketconnect-nginx-tcp-socketconnect-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
- ubuntu questing: golf 601.4.41-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms