mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
Added nginx to readme, about
This commit is contained in:
parent
e33e3a7d1b
commit
ce3f01bda3
@ -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