diff --git a/README.org b/README.org index 4da2ce4..008ce6f 100644 --- a/README.org +++ b/README.org @@ -95,9 +95,19 @@ return response.status_code #+RESULTS: : 200 ** Server -*** nginx +Example service setup for website under docker, nginx in a container forwarding traffic to uwsgi. +*** nginx web server #+BEGIN_SRC bash -docker run -d -v /etc/nginx/sites-enabled/:/etc/nginx/sites-enabled/ -v /etc/letsencrypt/:/etc/letsencrypt/ -v /var/www/:/var/www/ -v sockets:/data/sockets -p 80:80 -p 443:443 --name=nginx olymk2/nginx +docker run --name=nginx -d -v /etc/nginx/sites-enabled/:/etc/nginx/sites-enabled/ -v /etc/letsencrypt/:/etc/letsencrypt/ -v /var/www/:/var/www/ -v sockets:/data/sockets -p 80:80 -p 443:443 olymk2/nginx #+END_SRC +*** letsencrypt cert setup +Setup / create new certs +#+BEGIN_SRC bash letsencrypt certonly --renew --webroot -w /var/www/.well-known -d stage.maidstone-hackspace.org.uk letsencrypt certonly --webroot -w /var/www/.well-known -d stage.maidstone-hackspace.org.uk +#+END_SRC + +*** Backups +#+BEGIN_SRC bash +docker exec -t {CONTAINER_NAME} pg_dumpall -c -U postgres > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql +#+END_SRC diff --git a/mhackspace/static/sass/components/_footer.scss b/mhackspace/static/sass/components/_footer.scss index 678bd41..12c6384 100644 --- a/mhackspace/static/sass/components/_footer.scss +++ b/mhackspace/static/sass/components/_footer.scss @@ -1,12 +1,13 @@ -html { - position: relative; - min-height: 100%; +body { + position: relative; + min-height: 100%; } .footer { - bottom: 0; - width: 100%; - height: 60px; - line-height: 60px; - background-color: #f5f5f5; + position: absolute; + bottom: 0; + width: 100%; + height: 60px; + line-height: 60px; + background-color: #f5f5f5; }