Tandoor Recipes, Part Three
After fixing the errors yesterday I think all I have left to do is configure the NGINX reverse proxy.
Configure Reverse Proxy
Steps taken from domain registrar
- Add the A record:
tandoor.domain.com > XXX.XXX.XXX.XXX
Steps performed on NGINX-01
sudo nano /etc/nginx/sites-available/proxy.conf
- I add the following:
# Configuration for tandoor.domain.com
server {
listen 443;
server_name tandoor.domain.com;
client_max_body_size 100M;
location / {
proxy_set_header Host $host;
proxy_pass http://tandoor.domain.local:8017;
proxy_redirect off;
proxy_buffering off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Connection "upgrade";
}
}
# Configuration for http on port 80 to redirect
if ($host = tandoor.domain.com) {
return 301 https://$host$request_uri;
}
- I save the
proxy.conf
file sudo systemctl stop nginx
sudo systemctl start nginx
Testing is successful once the DNS A record propagates. I only had a few minutes to put towards play today, so I'm glad I was able to get something accomplished.