From 21baddd41853d6081db453b6800bfbe7923e3696 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Mon, 8 Feb 2016 17:47:07 -0500 Subject: [PATCH] Added nginx to readme, about Former-commit-id: 76d645c045f4ff58fd915f19bd691507f49106c4 [formerly e653f3aceffe98e00c54f9bfa7ddc07cdb3b0f1b] [formerly c3ff3445aabfb3109ee6b69b9991c894fe9eed14 [formerly ce3f01bda34063ebc0965983717a1a7cf5856452]] Former-commit-id: 2147f273d90b9496266a024fc6af87ac06839cc4 [formerly 88f4710fc4cd28acd1c13d8a41015637b100f952] Former-commit-id: dcc8f5fd055cab78e4493f435a81d5ed24f8e03a --- README.md | 6 +++++- main.go | 2 +- utils.go | 7 ++++--- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2354463..c7166ff 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,9 @@ Math is supported using [Katex](https://github.com/Khan/KaTeX). Be cautious about writing sensitive information in the notes as anyone with the URL has access to it. For more information, or if you'd like to edit the code, [use the github](https://github.com/schollz/cowyo). -**Powered by Raspberry Pi and Go** ![Raspberry Pi](http://cowyo.com/static/img/raspberrypi.png) ![Go Mascot](http://cowyo.com/static/img/gomascot.png) +**Powered by Raspberry Pi, Go, and NGINX** + +![Raspberry Pi](/static/img/raspberrypi.png) ![Go Mascot](/static/img/gomascot.png) ![Nginx](/static/img/nginx.png) # Install @@ -62,6 +64,8 @@ Example: 'cowyo -p :8080 localhost' Example: 'cowyo -db /var/lib/cowyo/db.bolt localhost' Example: 'cowyo -p :8080 -crt ssl/server.crt -key ssl/server.key localhost' Options: + -a string + key to access admin priveleges (default no admin priveleges) -crt string location of ssl crt -db string diff --git a/main.go b/main.go index e37bba6..b048c8b 100644 --- a/main.go +++ b/main.go @@ -35,7 +35,7 @@ func main() { databaseFile := path.Join(path.Dir(executableFile), "data.db") flag.StringVar(&RuntimeArgs.Port, "p", ":12312", "port to bind") flag.StringVar(&RuntimeArgs.DatabaseLocation, "db", databaseFile, "location of database file") - flag.StringVar(&RuntimeArgs.AdminKey, "a", "", "key to use admin priveleges") + flag.StringVar(&RuntimeArgs.AdminKey, "a", "", "key to access admin priveleges") flag.StringVar(&RuntimeArgs.ServerCRT, "crt", "", "location of ssl crt") flag.StringVar(&RuntimeArgs.ServerKey, "key", "", "location of ssl key") flag.CommandLine.Usage = func() { diff --git a/utils.go b/utils.go index f1f5b1c..60ee5e8 100644 --- a/utils.go +++ b/utils.go @@ -29,12 +29,13 @@ If you are writing a list and you want to tick off things really easily, just ad Math is supported using [Katex](https://github.com/Khan/KaTeX). For example, ` + "`" + `$\frac{1}{2}$` + "`" + ` becomes $\frac{1}{2}$ and ` + "`" + `$$E=mc^2$$` + "`" + ` becomes $$E=mc^2$$ -Be cautious about writing sensitive information in the notes as anyone with the URL has access to it. For more information, or if you'd like to edit the code, [use the github](https://github.com/schollz/cowyo). - +Be cautious about writing sensitive information in the notes as anyone with the URL has access to it. For more information, or if you'd like to edit the code, [use the Github](https://github.com/schollz/cowyo). If you'd like help or find a bug, please submit [an issue](https://github.com/schollz/cowyo/issues). Have fun. -**Powered by Raspberry Pi and Go** ![Raspberry Pi](/static/img/raspberrypi.png) ![Go Mascot](/static/img/gomascot.png)` +**Powered by Raspberry Pi, Go, and NGINX** + +![Raspberry Pi](/static/img/raspberrypi.png) ![Go Mascot](/static/img/gomascot.png) ![Nginx](/static/img/nginx.png)` robots_txt = `User-agent: * Disallow: /`