Repository for agill.xyz and its Nginx configuration.
To develop locally, do
./scripts/docker/web-nginx-proxy.sh
./scripts/docker/web-root.sh
and access the site at http://localhost
.
To debug Nginx redirection rules, you can modify/run
$ docker restart nginx-root && sleep 0.5 && ./scripts/check-redirects.sh
URL Resolved URL HTTP Response
http://localhost http://localhost/ 200
http://localhost/ http://localhost/ 200
http://localhost/index.html http://localhost/ 200
http://localhost/index http://localhost/index 200
http://localhost/css http://localhost/css/ 200
http://localhost/css/ http://localhost/css/ 200
http://localhost/css/index.html http://localhost/css/ 200
http://localhost/vim http://localhost/vim 200
http://localhost/vim/ http://localhost/vim/ 200
http://localhost/vim/index.html http://localhost/vim/ 200
http://localhost/vim/index http://localhost/vim/index 200
http://localhost/vim.html http://localhost/vim 200
http://localhost/vim/text-objects http://localhost/vim/text-objects 200
http://localhost/vim/text-objects/ http://localhost/vim/text-objects 200
http://localhost/vim/text-objects.html http://localhost/vim/text-objects 200
http://localhost/vim/text-objects/index.html http://localhost/vim/text-objects 200
http://localhost/graphviz http://localhost/graphviz 200
http://localhost/graphviz/ http://localhost/graphviz 200
http://localhost/graphviz.html http://localhost/graphviz 200
http://localhost/graphviz/index.html http://localhost/graphviz 200
http://localhost/404.html http://localhost/404 404
http://localhost/blog/product-spaces http://localhost/product-spaces 200
http://localhost/blog/product-spaces/ http://localhost/product-spaces 200
http://localhost/blog/product-spaces.html http://localhost/product-spaces 200
http://localhost/blog/product-spaces/index.html http://localhost/product-spaces 200
To deploy to production, clone the repository to a suitable host (one that agill.xyz
resolves to), and run
./scripts/docker/web-nginx-proxy.sh
./scripts/docker/web-nginx-https.sh
./scripts/docker/web-root.sh
and access the site at https://agill.xyz
To reload Nginx configuration, you may simply restart the nginx-root
container started by web-root.sh
.
The proxy and acme containers use shared Docker volumes to persist the SSL certificates.
If you want to deploy the haiku generation API container, you must first build the notgnoshi/api
container from https://github.com/Notgnoshi/research
Then you can run
./scripts/docker/research.sh
to start the container. This requires https://github.com/Notgnoshi/research to be cloned to /srv/research
, and the repository data to be initialized.
To update https://agill.xyz/rss.xml
, run
./scripts/rss.sh