Nginx sample app

Repo: dcape-app-nginx-sample

NGINX sample application package for dcape.

Docker image used

Features

This project contains

  • reference versions of core files for all of dcape applications since dcape v2:
  • samples for some nginx features:
    • log real user’s ip from traefik data
    • send gzipped static files
    • custom error pages

Requirements

Install

By mouse (deploy with drone)

  • Gitea: Fork or mirror this repo in your Git service
  • Drone: Activate repo
  • Gitea: “Test delivery”, config sample will be saved to enfist
  • Enfist: Edit config and remove .sample from name
  • Gitea: “Test delivery” again (or Drone: “Restart”) - app will be installed and started on webhook host

By hands

1
2
3
4
5
6
git clone --depth 1 https://github.com/dopos/dcape-app-nginx-sample.git
cd dcape-app-nginx-sample
make config
... <edit .env.sample>
mv .env.sample .env
make up

Upgrade

1
2
3
4
5
git pull
make config
... <check .env.sample>
mv .env.sample .env
make up