Updated readme with backup info
This commit is contained in:
parent
70589679a6
commit
bff7fe8950
14
README.org
14
README.org
|
@ -95,9 +95,19 @@ return response.status_code
|
||||||
#+RESULTS:
|
#+RESULTS:
|
||||||
: 200
|
: 200
|
||||||
** Server
|
** Server
|
||||||
*** nginx
|
Example service setup for website under docker, nginx in a container forwarding traffic to uwsgi.
|
||||||
|
*** nginx web server
|
||||||
#+BEGIN_SRC bash
|
#+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
|
#+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 --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
|
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
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
html {
|
body {
|
||||||
position: relative;
|
position: relative;
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer {
|
.footer {
|
||||||
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 60px;
|
height: 60px;
|
||||||
|
|
Loading…
Reference in New Issue