commit dd83e133539966e863547d92235afad59b3c1427
parent d850ce43ac55ed44bf85c0fe6dcce2d2e6b1ab8d
Author: Claudio Alessi <smoppy@gmail.com>
Date: Wed, 18 Jul 2018 00:02:21 +0200
[txthole] Add index to nginx config.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
@@ -54,12 +54,13 @@ To serve content over HTTP, use something like this (nginx):
server {
root /tmp/pastes/;
server_name your.host;
+ index txthole.index.paste;
location / {
rewrite ^/([-.a-zA-Z0-9]+)$ "/txthole.$1.paste" last;
}
- location ~ /txthole\.([-.a-zA-Z0-9]+)\.paste {
+ location ~ \.paste$ {
add_header Content-Type text/plain;
}
}