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:
|
||||
: 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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue