Skip to content

Commit

Permalink
docker: reverse proxy and show logs
Browse files Browse the repository at this point in the history
  • Loading branch information
iamSlightlyWind committed Oct 10, 2024
1 parent cc9f4b9 commit 936cd74
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/start-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,19 @@ jobs:
-e "EMAIL_PASSWORD=${{ secrets.EMAIL_PASSWORD }}" \
-e "GOOGLE_CLIENT_SECRET=${{ secrets.GOOGLE_CLIENT_SECRET }}" \
tomcat:majors_choice
- name: Reverse proxy
run: |
curl -L https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb -o cloudflared.deb
sudo dpkg -i cloudflared.deb
cd server/cloudflare
unzip -P "${{ secrets.CLOUDFLARE_ZIP_PASSWORD }}" .cloudflared.zip
mv .cloudflared ~/
cd ~/.cloudflared
sudo mkdir -p /etc/cloudflared
sudo cp * /etc/cloudflared/
sudo cloudflared service install
sudo service cloudflared start
- name: Show tomcat Logs
run: timeout 5m docker logs -f tomcat || true

0 comments on commit 936cd74

Please sign in to comment.