Compare commits

..

No commits in common. "4fb9aecbb444dcc396099a8070617037bbf37802" and "aa14a85127a40310788c56fbf7c1ed7b4901ddd2" have entirely different histories.

5 changed files with 1 additions and 68 deletions

1
.gitignore vendored
View File

@ -1 +0,0 @@
certs/

View File

@ -5,22 +5,6 @@ services:
container_name: nginx-reverse-proxy
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./certs:/etc/letsencrypt
- ./html:/var/www/html
- ./logs/nginx:/var/log/nginx
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

View File

@ -1 +0,0 @@
<html><body><h1>Test Page</h1></body></html>

View File

@ -1,30 +0,0 @@
events {}
http {
server {
listen 80;
server_name git.evil-bird.ru;
location /.well-known/acme-challenge/ {
root /var/www/html;
}
location / {
root /var/www/html;
index index.html;
}
}
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 / {
root /var/www/html;
index index.html;
}
}
}

View File

@ -1,29 +1,10 @@
events {}
http {
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
server {
listen 80;
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 / {
proxy_pass http://10.10.1.10:3000;
proxy_set_header Host $host;