You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

setup 404B

12345678910111213
  1. #!/bin/sh
  2. if [ ! -d /run/nginx ]; then
  3. mkdir -p /run/nginx
  4. chown nginx /run/nginx
  5. fi
  6. while [ ! -f /data/gitea/conf/app.ini ]; do
  7. echo "Gitea configuration is still not ready waiting 10 seconds..."
  8. sleep 10
  9. done
  10. GITEA_DOMAIN=$(iniget /data/gitea/conf/app.ini server DOMAIN)
  11. GITEA_DOMAIN=${GITEA_DOMAIN:-"localhost"} envsubst '${GITEA_DOMAIN}' < /etc/templates/nginx.conf > /etc/nginx/nginx.conf