Gitea auf Uberspace.de verwenden
Kurze Zusammenfassung wie man sich Gitea auf uberspace.de einrichtet.
mkdir -p ~/src/go export GOPATH=~/src/go export PATH=$PATH:~/src/go/bin echo “export GOPATH=~/src/go/” » ~/.bash_profile echo “export PATH=$PATH:~/src/go/bin” » ~/.bash_profile go get -d -u code.gitea.io/gitea
cd $GOPATH/src/code.gitea.io/gitea
Check Versions git branch -a
get STABLE git checkout remotes/origin/release/v1.0
TAGS=”bindata” make generate build
export GITEA_PORT=64554
HTTPS: https://wiki.uberspace.de/webserver:https
mkdir /home/$USER/src/go/src/code.gitea.io/gitea/custom mkdir /home/$USER/src/go/src/code.gitea.io/gitea/custom/conf cp /home/$USER/src/go/src/code.gitea.io/gitea/conf/app.ini /home/$USER/src/go/src/code.gitea.io/gitea/custom/conf/app.ini sed -i – “s/(RUN_USER = )(.)/\1$USER/g” /home/$USER/src/go/src/code.gitea.io/gitea/custom/conf/app.ini sed -i – “s/(HTTP_PORT = )([0-9].)/\1$GITEA_PORT/g” /home/$USER/src/go/src/code.gitea.io/gitea/custom/conf/app.ini sed -i – “s@(CERT_FILE = )(.)@\1~/.config/letsencrypt/live/$USER.$HOST/cert.pem@g” /home/$USER/src/go/src/code.gitea.io/gitea/custom/conf/app.ini sed -i – “s@(KEY_FILE = )(.)@\1~/.config/letsencrypt/live/$USER.$HOST/privkey.pem@g” /home/$USER/src/go/src/code.gitea.io/gitea/custom/conf/app.ini sed -i – “s/(SECRET_KEY = )(.*)/\1$(pwgen -s 25 1)/g” /home/$USER/src/go/src/code.gitea.io/gitea/custom/conf/app.ini