This commit is contained in:
awieczarek 2024-10-23 13:01:17 +02:00
parent b56fa05ddf
commit e76265b68d

View File

@ -11,7 +11,8 @@ NAME=$(echo $DATABASE_URL | sed -e 's,.*/\(.*\)$,\1,')
SSL_MODE="require"
mkdir -p /var/lib/gitea/custom/conf
printf "\n[server]\n" >> /var/lib/gitea/custom/conf/app.ini
printf "HTTP_PORT = $PORT\n" > /var/lib/gitea/custom/conf/app.ini
printf "[database]\n" > /var/lib/gitea/custom/conf/app.ini
printf "DB_TYPE = $DB_TYPE\n" >> /var/lib/gitea/custom/conf/app.ini
@ -21,9 +22,4 @@ printf "USER = $USER\n" >> /var/lib/gitea/custom/conf/app.ini
printf "PASSWD = $PASSWD\n" >> /var/lib/gitea/custom/conf/app.ini
printf "SSL_MODE = $SSL_MODE\n" >> /var/lib/gitea/custom/conf/app.ini
printf "\n[server]\n" >> /var/lib/gitea/custom/conf/app.ini
printf "ROOT_URL = https://your-app-name.herokuapp.com/\n" >> /var/lib/gitea/custom/conf/app.ini
printf "HTTP_PORT = $PORT\n" > /var/lib/gitea/custom/conf/app.ini
/usr/local/bin/gitea web -port $PORT