Point an NGINX Reverse Proxy to Wordpress Running on Docker
Автор: DevbaseMedia
Загружено: 2020-09-17
Просмотров: 19304
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 to Go...
Creating a Wordpress instance on GCP: • Run Wordpress for Free Forever with Google...
How to Point your Domain at a Google Cloud Instance: • How to Point your Domain at a Google Cloud...
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
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: