add doc
This commit is contained in:
parent
44aeff5e74
commit
87632ac6b4
1 changed files with 30 additions and 0 deletions
30
README.md
Normal file
30
README.md
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
# Personal Gemini Site
|
||||||
|
|
||||||
|
My own little corner of Geminispace. A partner site to my personal website https://travisshears.com
|
||||||
|
|
||||||
|
## General Gemini resources
|
||||||
|
|
||||||
|
- https://bombadillo.colorfield.space/docs/
|
||||||
|
- https://github.com/kulak/gemini
|
||||||
|
- https://geminiprotocol.net/software/
|
||||||
|
- https://geminiprotocol.net/
|
||||||
|
|
||||||
|
## Dev
|
||||||
|
|
||||||
|
Generate self-signed certificate:
|
||||||
|
```shell
|
||||||
|
$ openssl genrsa -out localhost_key.pem 2048
|
||||||
|
$ openssl req -new -key localhost_key.pem -out localhost_cert.csr
|
||||||
|
$ openssl x509 -req -days 365 -in localhost_cert.csr -signkey locslhost_key.pem -out cert.crt.pem
|
||||||
|
```
|
||||||
|
common name is the domain name ex 'localhost'
|
||||||
|
|
||||||
|
Run server on local:
|
||||||
|
```shell
|
||||||
|
$ go run main.go -cert=./keys/cert.crt.pem -key=./keys/localhost_key.pem -host=localhost:8080
|
||||||
|
```
|
||||||
|
|
||||||
|
Visit it:
|
||||||
|
```shell
|
||||||
|
$ bombadillo gemini://localhost:8080
|
||||||
|
```
|
||||||
Loading…
Add table
Add a link
Reference in a new issue