nginx-proxy-auto-docker/test/test_www_redirect.yml
Robin Windey 9ee3d311da
Redirect www to non-www (#1)
* www to non-www redirect + tests

* Github actions fix syntax

* Github actions TTY problem

* Fix docker version github actions

* Revert "Fix docker version github actions"

This reverts commit c5f703a9531058aa61120329ea1daeaccd6269e1.

* Docker version set explicitly
2020-10-10 09:27:49 +02:00

27 lines
No EOL
594 B
YAML

# Webapp without https redirect (just serving http)
http:
image: web
expose:
- "81"
environment:
WEB_PORTS: 81
VIRTUAL_HOST: web.nginx-proxy.tld,www.web.nginx-proxy.tld
HTTPS_METHOD: nohttps
# Webapp with https redirect
https:
image: web
expose:
- "82"
environment:
WEB_PORTS: 82
VIRTUAL_HOST: web2.nginx-proxy.tld,www.web2.nginx-proxy.tld
# Proxy
sut:
image: jwilder/nginx-proxy:test
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./lib/ssl/dhparam.pem:/etc/nginx/dhparam/dhparam.pem:ro
- ./test_ssl/certs:/etc/nginx/certs:ro