Compare commits
No commits in common. "7adf8f3daf3e709f7c311436b77410384382a924" and "aa14a85127a40310788c56fbf7c1ed7b4901ddd2" have entirely different histories.
7adf8f3daf
...
aa14a85127
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +0,0 @@
|
|||||||
certs/
|
|
@ -5,21 +5,6 @@ services:
|
|||||||
container_name: nginx-reverse-proxy
|
container_name: nginx-reverse-proxy
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
- "443:443"
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./nginx.conf:/etc/nginx/nginx.conf
|
- ./nginx.conf:/etc/nginx/nginx.conf
|
||||||
- ./certs:/etc/letsencrypt
|
|
||||||
- ./html:/var/www/html
|
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
certbot:
|
|
||||||
image: certbot/certbot
|
|
||||||
container_name: certbot
|
|
||||||
volumes:
|
|
||||||
- ./certs:/etc/letsencrypt
|
|
||||||
- ./html:/var/www/html
|
|
||||||
# command: certonly --webroot --webroot-path=/var/www/html --email prbigoon@gmail.com --agree-tos --no-eff-email -d git.evil-bird.ru
|
|
||||||
command: renew --webroot --webroot-path=/var/www/html
|
|
||||||
entrypoint: /bin/sh -c "trap exit TERM; while :; do certbot renew --webroot --webroot-path=/var/www/html; sleep 12h & wait $${!}; done;"
|
|
||||||
depends_on:
|
|
||||||
- nginx
|
|
||||||
|
@ -1 +0,0 @@
|
|||||||
<html><body><h1>Test Page</h1></body></html>
|
|
16
nginx.conf
16
nginx.conf
@ -5,22 +5,6 @@ http {
|
|||||||
listen 80;
|
listen 80;
|
||||||
server_name git.evil-bird.ru;
|
server_name git.evil-bird.ru;
|
||||||
|
|
||||||
location /.well-known/acme-challenge/ {
|
|
||||||
root /var/www/html;
|
|
||||||
}
|
|
||||||
|
|
||||||
location / {
|
|
||||||
return 301 https://$host$request_uri;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
|
||||||
listen 443 ssl;
|
|
||||||
server_name git.evil-bird.ru;
|
|
||||||
|
|
||||||
ssl_certificate /etc/letsencrypt/live/git.evil-bird.ru/fullchain.pem;
|
|
||||||
ssl_certificate_key /etc/letsencrypt/live/git.evil-bird.ru/privkey.pem;
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://10.10.1.10:3000;
|
proxy_pass http://10.10.1.10:3000;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user