Merge branch 'main' of https://dev.discours.io/discours.io/core
Some checks failed
Deploy to discoursio-api / deploy (push) Failing after 1m31s

This commit is contained in:
Untone 2024-01-25 02:59:43 +03:00
commit 168f845772
2 changed files with 40 additions and 0 deletions

32
.gitea/workflows/main.yml Normal file
View File

@ -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'

View File

@ -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; client_max_body_size 100m;
include /home/dokku/{{ $.APP }}/nginx.conf.d/*.conf; include /home/dokku/{{ $.APP }}/nginx.conf.d/*.conf;