1
0
mirror of https://git.cloudron.io/cloudron/gitea-app synced 2025-09-21 20:47:39 +00:00

Revert oauth changes

gogs implements oauth just for sign up verification
This commit is contained in:
Girish Ramakrishnan
2015-06-24 08:12:29 -07:00
parent 59b2ce400a
commit 804ce16088
3 changed files with 5 additions and 33 deletions

View File

@@ -5,8 +5,6 @@ set -eu -o pipefail
fqdn=$(hostname -f)
chown -R cloudron.cloudron /app/data
mkdir -p /home/cloudron/gogs/log
chown cloudron:cloudron /home/cloudron/gogs/log
# Dockerfile changes the ownership of this file to make it writable by cloudron user
sed -e "s/^Port .*/Port ${SSH_PORT}/" \
@@ -57,11 +55,6 @@ sed -e "s/##HOSTNAME/${fqdn}/g" \
-e "s/##MAIL_PORT/${MAIL_SMTP_PORT}/g" \
-e "s/##MAIL_FROM/${MAIL_SMTP_USERNAME}@${MAIL_DOMAIN}/g" \
-e "s/##SECRET_KEY/$(pwgen -1 -s)/g" \
-e "s/##OAUTH_CLIENT_ID/${OAUTH_CLIENT_ID}/g" \
-e "s/##OAUTH_CLIENT_SECRET/${OAUTH_CLIENT_SECRET}/g" \
-e "s,##OAUTH_AUTH_URL,${ADMIN_ORIGIN}/api/v1/oauth/dialog/authorize,g" \
-e "s,##OAUTH_TOKEN_URL,${ADMIN_ORIGIN}/api/v1/oauth/token,g" \
-e "s,##CLOUDRON_ORIGIN,${ADMIN_ORIGIN},g" \
/home/cloudron/app.ini.template > "/home/cloudron/gogs/custom/conf/app.ini"
supervisorctl restart gogs