From ab81e04e0090149aca6cba3f5154e91dc0cd6659 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Wed, 7 May 2025 20:03:02 +0530 Subject: Saving timestamps --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index d7259d7..840aed0 100644 --- a/README.md +++ b/README.md @@ -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 -- cgit v1.2.3