This video shows you how to set up an NGINX Reverse Proxy to route traffic to anything running in docker. In this case, it'll route to the Wordpress instance we have been building over the past few videos.
We need to do this before we can secure our domain name with HTTPS using letsencrypt
Previous videos:
Registering a domain with Google Domains: • How to transfer domains from GoDaddy ...
Creating a Wordpress instance on GCP: • Run Wordpress for Free Forever with G...
How to Point your Domain at a Google Cloud Instance: • How to Point your Domain at a Google ...
Code snippet for nginx configuration:
server {
root /var/www/html;
listen 80;
listen [::]:80;
server_name yourdomain.com www.yourdomain.com;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_redirect off;
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-Host $server_name;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
GitHub repo: https://github.com/chrisbmatthews/wor...
Google Cloud Platform: https://cloud.google.com
Music: / petersawatzky
Watch video Point an NGINX Reverse Proxy to Wordpress Running on Docker online without registration, duration hours minute second in high quality. This video was added by user DevbaseMedia 17 September 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 17,608 once and liked it 291 people.