Skip to content

Commit

Permalink
Removing http redirection to allow certbot automatic renewal (#96)
Browse files Browse the repository at this point in the history
* removing http redirection to allow certbot renewal

* also adding auto deploy once a month, in case of a certificate renewal

* Also adding a step to clean up resources so we have free space
  • Loading branch information
amaldonadomat committed May 13, 2024
1 parent ded981b commit 4be2fb7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/deploy-api-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
- '.github/workflows/deploy-api-client.yml'
- 'docker-compose.yaml'
workflow_dispatch:
schedule:
- cron: '0 0 15 * *'

permissions:
actions: write
Expand Down Expand Up @@ -53,3 +55,15 @@ jobs:
docker-compose rm -f
docker-compose build --no-cache
docker-compose up -d
- name: Cleanup unused docker images, volumes and build cache
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.DEPLOY_HOST_DNS }}
username: ${{ secrets.DEPLOY_USERNAME }}
key: ${{ secrets.DEPLOY_SSH_KEY }}
script: |
docker container prune -f
docker image prune -f
docker volume prune -f
docker builder prune -f
6 changes: 0 additions & 6 deletions client/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ http {
include mime.types;
sendfile on;

server {
listen 8080;
server_name substrait-fiddle.com;
return 301 https://$host$request_uri;
}

server {
listen 443 ssl;

Expand Down
1 change: 0 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ services:
args:
- VITE_SESSION_SECRET=$VITE_SESSION_SECRET
ports:
- "80:8080"
- "443:443"
networks:
- fiddle-network
Expand Down

0 comments on commit 4be2fb7

Please sign in to comment.