diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -34,7 +34,8 @@ template = """ guestbook_entry( name=\"{{.Name}}\", website=\"{{.Website}}\", - message=\"{{.Message}}\" + message=\"{{.Message}}\", + time=\"{{.Time}}\" ) {{print "}}"}} {{end}}""" @@ -72,6 +73,20 @@ systemctl daemon-reload systemctl enable --now my_guestbook-guestbook ``` +## Nginx configuration + +Pass exactly the desired url to the guestbook server. +Replace port and the path to match your configuration. + +``` +location = /guestbook/sign { + proxy_pass http://localhost:2222/sign; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; +} +``` + ## Reading entries ```fish |