FILE='/var/lib/docker/volumes/forgejo-data/_data/gitea/conf/app.ini'
sed -i "s/^DB_TYPE =.*/DB_TYPE = postgres/" $FILE
sed -i "s/^HOST =.*/HOST = kssgo8ccgkos0kw0c0owgk8o:5432/" $FILE
sed -i "s/^NAME =.*/NAME = forgejo/" $FILE
sed -i "s/^USER =.*/USER = coolify/" $FILE
sed -i "s/^PASSWD =.*/PASSWD = Shared#User#Password#123!4/" $FILE
sed -i "s|^PATH =.*|#PATH = /data/gitea/gitea.db|" $FILE
sed -i "s/^SSL_MODE =.*/SSL_MODE = disable/" $FILE
