Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sites.conf
- ===========
- server {
- listen 80;
- server_name foo.bar.com;
- location / {
- proxy_pass http://w.x.y.z:8000;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection 'upgrade';
- proxy_set_header Host $host;
- proxy_cache_bypass $http_upgrade;
- }
- }
- Dockerfile
- ===========
- FROM nginx
- ADD conf/sites.conf /etc/nginx/conf.d/sites.conf
- docker commands
- ================
- docker build -t nginx .
- Successfully built 38c9976e598c
- docker run --name nginx -p 80:80 38c9976e598c
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement