Add goosefarminvesting.com nginx vhost
Some checks failed
Deploy Nginx Config to Ubuntu Server / deploy (push) Has been cancelled
Some checks failed
Deploy Nginx Config to Ubuntu Server / deploy (push) Has been cancelled
This commit is contained in:
parent
3cd05360e1
commit
c8f2b32d45
@ -429,6 +429,66 @@ server {
|
||||
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name goosefarminvesting.com;
|
||||
|
||||
location /.well-known/acme-challenge/ {
|
||||
alias /var/www/html/.well-known/acme-challenge/;
|
||||
}
|
||||
|
||||
location = / {
|
||||
return 301 https://$host/goosefarm/;
|
||||
}
|
||||
|
||||
location / {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
server_name goosefarminvesting.com;
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/goosefarminvesting.com/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/goosefarminvesting.com/privkey.pem;
|
||||
include /etc/letsencrypt/options-ssl-nginx.conf;
|
||||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
||||
|
||||
location = / {
|
||||
return 301 https://$host/goosefarm/;
|
||||
}
|
||||
|
||||
location /goosefarm/api/ {
|
||||
proxy_buffering on;
|
||||
proxy_buffer_size 128k;
|
||||
proxy_buffers 8 256k;
|
||||
proxy_busy_buffers_size 512k;
|
||||
proxy_read_timeout 120s;
|
||||
proxy_pass http://localhost:8200/api/;
|
||||
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;
|
||||
}
|
||||
|
||||
location = /goosefarm/index.html {
|
||||
alias /var/www/html/goosefarm/index.html;
|
||||
add_header Cache-Control "no-store, no-cache, must-revalidate";
|
||||
}
|
||||
|
||||
location /goosefarm {
|
||||
alias /var/www/html/goosefarm/;
|
||||
try_files $uri /goosefarm/index.html;
|
||||
}
|
||||
|
||||
location /.well-known/acme-challenge/ {
|
||||
alias /var/www/html/.well-known/acme-challenge/;
|
||||
}
|
||||
}
|
||||
|
||||
# Gitea server configuration
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user