aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2025-05-07 20:03:02 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2025-05-07 20:03:02 +0530
commitab81e04e0090149aca6cba3f5154e91dc0cd6659 (patch)
tree3470ec4b478676d6e114c3d6fcaa4304a53afb1a /README.md
parent03e5020f880c7237141fd850f54579fe3e97324b (diff)
Saving timestampsHEADv1.5.0master
Diffstat (limited to 'README.md')
-rw-r--r--README.md17
1 files changed, 16 insertions, 1 deletions
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