Compare commits
No commits in common. "4fb9aecbb444dcc396099a8070617037bbf37802" and "aa14a85127a40310788c56fbf7c1ed7b4901ddd2" have entirely different histories.
4fb9aecbb4
...
aa14a85127
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +0,0 @@
|
||||
certs/
|
@ -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
|
||||
|
@ -1 +0,0 @@
|
||||
<html><body><h1>Test Page</h1></body></html>
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
19
nginx.conf
19
nginx.conf
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user