It's working !
This commit is contained in:
parent
0f86b3608a
commit
8a6e1e821e
4
.gitignore
vendored
4
.gitignore
vendored
@ -119,3 +119,7 @@ dist
|
|||||||
# Service worker
|
# Service worker
|
||||||
sw.*
|
sw.*
|
||||||
*.private.env.json
|
*.private.env.json
|
||||||
|
|
||||||
|
# Certificates
|
||||||
|
data/
|
||||||
|
letsencrypt/
|
||||||
|
|||||||
@ -12,8 +12,8 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./frontend/dist:/usr/share/nginx/html
|
- ./frontend/dist:/usr/share/nginx/html
|
||||||
- ./nginx:/etc/nginx/conf.d
|
- ./nginx:/etc/nginx/conf.d
|
||||||
- ./nginx/certbot/conf:/etc/letsencrypt
|
- ./data/certbot/conf:/etc/letsencrypt
|
||||||
- ./nginx/certbot/www:/var/www/certbot
|
- ./data/certbot/www:/var/www/certbot
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- 80:80
|
||||||
- 443:443
|
- 443:443
|
||||||
@ -23,8 +23,8 @@ services:
|
|||||||
certbot:
|
certbot:
|
||||||
image: certbot/certbot
|
image: certbot/certbot
|
||||||
volumes:
|
volumes:
|
||||||
- ./nginx/certbot/conf:/etc/letsencrypt
|
- ./data/certbot/conf:/etc/letsencrypt
|
||||||
- ./nginx/certbot/www:/var/www/certbot
|
- ./data/certbot/www:/var/www/certbot
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: mariadb
|
image: mariadb
|
||||||
|
|||||||
@ -5,10 +5,10 @@ if ! [ -x "$(command -v docker-compose)" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
domains=(simplenotes.be www.simplenotes.be)
|
domains=(simplenotes.be)
|
||||||
rsa_key_size=4096
|
rsa_key_size=4096
|
||||||
data_path="./nginx/certbot"
|
data_path="./data/certbot"
|
||||||
email=""
|
email="hubv@protonmail.com"
|
||||||
staging=0 # Set to 1 if you're testing your setup to avoid hitting request limits
|
staging=0 # Set to 1 if you're testing your setup to avoid hitting request limits
|
||||||
|
|
||||||
if [ -d "$data_path" ]; then
|
if [ -d "$data_path" ]; then
|
||||||
|
|||||||
@ -15,8 +15,8 @@ server {
|
|||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
server_name simplenotes.be;
|
server_name simplenotes.be;
|
||||||
|
|
||||||
ssl_certificate /etc/letsencrypt/live/example.org/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/simplenotes.be/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/example.org/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/simplenotes.be/privkey.pem;
|
||||||
|
|
||||||
include /etc/letsencrypt/options-ssl-nginx.conf;
|
include /etc/letsencrypt/options-ssl-nginx.conf;
|
||||||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user