GOLF(2gg)
β¨ GOLF(2gg) β¨
okay bestie, welcome to the Golf docs, section Development β this one's filed under web-servers and it's giving "let me introduce your app to Nginx" π
πΈ NAME πΈ
connect-nginx-tcp-socket β Golf documentation (web-servers)
π¦ DESCRIPTION π¦
So like. This page shows you how to connect your application β the one listening on TCP port <port number> (you started it with the -p option in mgrg, remember? π«Ά) β to an Nginx web server.
Not me hyping you up for a two-step process, but here we are, and you're gonna slay it.
- Step 1 π : You will need to edit the Nginx configuration file. For Ubuntu and similar:
sudo vi /etc/nginx/sites-enabled/default
while on Fedora and other systems it might be at:
sudo vi /etc/nginx/nginx.conf
Add the following in the "server {}" section ("/<app path>" is the application path, see request):
location /<app path>/ { include /etc/nginx/fastcgi_params; fastcgi_pass 127.0.0.1:<port number>; }
- Step 2 π : Finally, restart Nginx:
sudo systemctl restart nginx
Note: you must not have any other URL resource that starts with"/<app path>/"(such as for example"/<app path>/something") as the web server will attempt to pass them as a reverse proxy request, and they will likely not work. If you need to, you can change the application path to be different from"/<app path>", seerequest. π fr fr, don't skip this one.
π SEE ALSO π
Web servers
connect-apache-tcp-socketconnect-apache-unix-socketconnect-haproxy-tcp-socketconnect-nginx-tcp-socketconnect-nginx-unix-socket
See all documentation β
and that's the whole vibe, bestie β go forth and reverse-proxy responsibly π§π
this page came from version $VERSION, dated $DATE, and it lives in the GOLF(2gg) manual. 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