From 253b2fb05a57be2c916fb85daa54a6dc500363c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20=C3=81lvarez?= Date: Mon, 16 May 2022 16:28:14 +0200 Subject: [PATCH] vhost --- .drone.yml | 2 -- _posts/2022-05-08-drone-gitea-ci-cd.md | 13 +++++++++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 4fa6b32..f45a621 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,9 +11,7 @@ steps: path: /cache commands: - bundle config set --local path /cache/.bundle - - bundle env - bundle install - - ls -la /cache/.bundle - bundle exec jekyll build - name: deploy diff --git a/_posts/2022-05-08-drone-gitea-ci-cd.md b/_posts/2022-05-08-drone-gitea-ci-cd.md index 324ef38..7546236 100644 --- a/_posts/2022-05-08-drone-gitea-ci-cd.md +++ b/_posts/2022-05-08-drone-gitea-ci-cd.md @@ -29,8 +29,17 @@ Como el contenido hay que servirlo desde alguna parte, tengo la siguiente config ```nginx server { - ... - ... + server_name sergio.am; + root /var/www/_site; + index index.html; + + location / { + try_files $uri $uri/ @gitea; + } + + location @gitea { + proxy_pass http://gitea:3000; + } } ```