mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
Added nginx to readme, about
Former-commit-id: 76d645c045f4ff58fd915f19bd691507f49106c4 [formerly e653f3aceffe98e00c54f9bfa7ddc07cdb3b0f1b] [formerly c3ff3445aabfb3109ee6b69b9991c894fe9eed14 [formerly ce3f01bda3
]]
Former-commit-id: 2147f273d90b9496266a024fc6af87ac06839cc4 [formerly 88f4710fc4cd28acd1c13d8a41015637b100f952]
Former-commit-id: dcc8f5fd055cab78e4493f435a81d5ed24f8e03a
This commit is contained in:
parent
c6877580ff
commit
21baddd418
@ -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).
|
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
|
# Install
|
||||||
|
|
||||||
@ -62,6 +64,8 @@ Example: 'cowyo -p :8080 localhost'
|
|||||||
Example: 'cowyo -db /var/lib/cowyo/db.bolt localhost'
|
Example: 'cowyo -db /var/lib/cowyo/db.bolt localhost'
|
||||||
Example: 'cowyo -p :8080 -crt ssl/server.crt -key ssl/server.key localhost'
|
Example: 'cowyo -p :8080 -crt ssl/server.crt -key ssl/server.key localhost'
|
||||||
Options:
|
Options:
|
||||||
|
-a string
|
||||||
|
key to access admin priveleges (default no admin priveleges)
|
||||||
-crt string
|
-crt string
|
||||||
location of ssl crt
|
location of ssl crt
|
||||||
-db string
|
-db string
|
||||||
|
2
main.go
2
main.go
@ -35,7 +35,7 @@ func main() {
|
|||||||
databaseFile := path.Join(path.Dir(executableFile), "data.db")
|
databaseFile := path.Join(path.Dir(executableFile), "data.db")
|
||||||
flag.StringVar(&RuntimeArgs.Port, "p", ":12312", "port to bind")
|
flag.StringVar(&RuntimeArgs.Port, "p", ":12312", "port to bind")
|
||||||
flag.StringVar(&RuntimeArgs.DatabaseLocation, "db", databaseFile, "location of database file")
|
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.ServerCRT, "crt", "", "location of ssl crt")
|
||||||
flag.StringVar(&RuntimeArgs.ServerKey, "key", "", "location of ssl key")
|
flag.StringVar(&RuntimeArgs.ServerKey, "key", "", "location of ssl key")
|
||||||
flag.CommandLine.Usage = func() {
|
flag.CommandLine.Usage = func() {
|
||||||
|
7
utils.go
7
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$$
|
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.
|
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: *
|
robots_txt = `User-agent: *
|
||||||
Disallow: /`
|
Disallow: /`
|
||||||
|
Loading…
Reference in New Issue
Block a user