aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
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