View, edit, and save text files via http to the file system.
(DONE) https://golang.org/doc/articles/wiki/
go run main.go
In a web browser, visit localhost:9090 (or specified port)
-
/view/x will redirect to create a page with title 'x'
-
/edit/x will edit page with title 'x' (editing a non-existent url will create a new page)
Build:
docker build -t go-wiki .
Run in detached mode:
docker run -d -p 9090:9090 -e PORT="9090" go-wiki
Find and stop a container:
docker ps
docker stop <CONTAINER ID>
mkdir certs
openssl req -x509 -nodes -days 365 -newkey rsa:2048 \
-keyout certs/localhost.key -out certs/localhost.crt \
-subj "/C=AU/ST=Australia/L=Canberra/O=Clint Vidler/OU=Dev/CN=localhost/emailAddress=clint@vidler"