Compare commits
3 Commits
7adf8f3daf
...
16f98386ac
Author | SHA1 | Date | |
---|---|---|---|
![]() |
16f98386ac | ||
![]() |
9757c410e3 | ||
![]() |
bf323d406e |
30
html/stagged_nginx.conf
Normal file
30
html/stagged_nginx.conf
Normal file
@ -0,0 +1,30 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
10
nginx.conf
10
nginx.conf
@ -10,7 +10,8 @@ http {
|
||||
}
|
||||
|
||||
location / {
|
||||
return 301 https://$host$request_uri;
|
||||
root /var/www/html;
|
||||
index index.html;
|
||||
}
|
||||
}
|
||||
|
||||
@ -22,11 +23,8 @@ http {
|
||||
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;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
root /var/www/html;
|
||||
index index.html;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user