File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99env :
1010 DOMAIN : sslproxy.stackpop.com
11+ HTTP_PORT : 9080
12+ HTTPS_PORT : 9443
13+ UPSTREAM_URL : http://host.docker.internal:3000
1114
1215jobs :
1316 test :
2427 - name : Create .env
2528 run : |
2629 echo "DOMAIN=${{ env.DOMAIN }}" > .env
27- echo "UPSTREAM_URL=http://host.docker.internal:3000" >> .env
30+ echo "HTTP_PORT=${{ env.HTTP_PORT }}" >> .env
31+ echo "HTTPS_PORT=${{ env.HTTPS_PORT }}" >> .env
32+ echo "UPSTREAM_URL=${{ env.UPSTREAM_URL }}" >> .env
2833
2934 - name : Add test domain to hosts
3035 run : echo "127.0.0.1 ${{ env.DOMAIN }}" | sudo tee -a /etc/hosts
@@ -52,12 +57,11 @@ jobs:
5257
5358 - name : Test HTTP redirect
5459 run : |
55- curl -s -o /dev/null -w "%{http_code}" http://${{ env.DOMAIN }}:8080 | grep -q "301\|308"
60+ curl -s -o /dev/null -w "%{http_code}" http://${{ env.DOMAIN }}:${{ env.HTTP_PORT }} | grep -q "301\|308"
5661
5762 - name : Test HTTPS proxies to upstream
5863 run : |
59- curl -s --cacert certs/${{ env.DOMAIN }}.rootCA.pem https://${{ env.DOMAIN }}:8443 | grep -q "nginx"
60-
64+ curl -s --cacert certs/${{ env.DOMAIN }}.rootCA.pem https://${{ env.DOMAIN }}:${{ env.HTTPS_PORT }} | grep -q "nginx"
6165 - name : Show logs on failure
6266 if : failure()
6367 run : docker compose logs
You can’t perform that action at this time.
0 commit comments