certbot
This commit is contained in:
parent
4fb04e786a
commit
6357739d27
@ -8,6 +8,7 @@ services:
|
|||||||
- "443:443"
|
- "443:443"
|
||||||
volumes:
|
volumes:
|
||||||
- certs:/etc/letsencrypt
|
- certs:/etc/letsencrypt
|
||||||
|
- certbot-html:/var/www/html
|
||||||
deploy:
|
deploy:
|
||||||
mode: replicated
|
mode: replicated
|
||||||
replicas: 1
|
replicas: 1
|
||||||
@ -102,8 +103,27 @@ services:
|
|||||||
parallelism: 1
|
parallelism: 1
|
||||||
order: start-first
|
order: start-first
|
||||||
|
|
||||||
|
certbot:
|
||||||
|
image: certbot/certbot
|
||||||
|
volumes:
|
||||||
|
- certs:/etc/letsencrypt
|
||||||
|
- certbot-html:/var/www/html
|
||||||
|
command: certonly --webroot --webroot-path=/var/www/html --email emmtvv@gmail.com --agree-tos --no-eff-email -d "*.develop.sprinthub.ru"
|
||||||
|
deploy:
|
||||||
|
mode: replicated
|
||||||
|
placement:
|
||||||
|
constraints: [node.role == manager]
|
||||||
|
restart_policy:
|
||||||
|
condition: any
|
||||||
|
delay: 720h # each month
|
||||||
|
update_config:
|
||||||
|
parallelism: 1
|
||||||
|
order: start-first
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
minio_data:
|
minio_data:
|
||||||
driver: local
|
driver: local
|
||||||
certs:
|
certs:
|
||||||
|
driver: local
|
||||||
|
certbot-html:
|
||||||
driver: local
|
driver: local
|
@ -2,6 +2,18 @@ events {}
|
|||||||
|
|
||||||
http {
|
http {
|
||||||
client_max_body_size 50m;
|
client_max_body_size 50m;
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
|
server_name *.develop.sprinthub.ru;
|
||||||
|
|
||||||
|
location ~ /.well-known/acme-challenge {
|
||||||
|
allow all;
|
||||||
|
root /var/www/html;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name dev.develop.sprinthub.ru;
|
server_name dev.develop.sprinthub.ru;
|
||||||
@ -11,15 +23,6 @@ http {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
|
||||||
listen 80;
|
|
||||||
server_name telegram.develop.sprinthub.ru;
|
|
||||||
|
|
||||||
location / {
|
|
||||||
proxy_pass http://web.telegram.org/;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name swarmpit.develop.sprinthub.ru;
|
server_name swarmpit.develop.sprinthub.ru;
|
||||||
|
Loading…
Reference in New Issue
Block a user