diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml new file mode 100644 index 00000000..c2cbfa60 --- /dev/null +++ b/.gitea/workflows/main.yml @@ -0,0 +1,32 @@ +name: 'Deploy to discoursio-api' +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Cloning repo + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Get Repo Name + id: repo_name + run: echo "::set-output name=repo::$(echo ${GITHUB_REPOSITORY##*/})" + + - name: Get Branch Name + id: branch_name + run: echo "::set-output name=branch::$(echo ${GITHUB_REF##*/})" + + - name: Push to dokku + uses: dokku/github-action@master + with: + branch: 'main' + git_remote_url: 'ssh://dokku@staging.discours.io:22/discoursio-api' + ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} + git_push_flags: '--force' + + diff --git a/nginx.conf.sigil b/nginx.conf.sigil index e831f3e6..80859d98 100644 --- a/nginx.conf.sigil +++ b/nginx.conf.sigil @@ -40,6 +40,14 @@ server { } } + location ~ /.well-known/acme-challenge { + allow all; + root /var/www/html; # Adjust this to the correct path where challenge files are stored + default_type "text/plain"; + try_files $uri =404; + } + + client_max_body_size 100m; include /home/dokku/{{ $.APP }}/nginx.conf.d/*.conf;