Supprimer 'actual.list'

original/refs/heads/master
Pierre Coimbra 2020-02-05 17:12:59 +01:00 committed by Pierre Coimbra
parent b350a99c79
commit 2456ef3643
No known key found for this signature in database
GPG Key ID: F9C449C78F6FAEE6
1 changed files with 0 additions and 40 deletions

View File

@ -1,40 +0,0 @@
apt-get update
apt-get install -y git
adduser --system --shell /bin/bash --group --disabled-password --home /home/git git
wget -O gitea https://dl.gitea.io/gitea/1.10.3/gitea-1.10.3-linux-amd64
chmod +x gitea
cp gitea /usr/local/bin/gitea
mkdir -p /var/lib/gitea/{custom,data,indexers,public,log}
chown git:git /var/lib/gitea/{data,indexers,log}
chmod 750 /var/lib/gitea/{data,indexers,log}
mkdir /etc/gitea
chown root:git /etc/gitea
chmod 770 /etc/gitea
wget https://raw.githubusercontent.com/go-gitea/gitea/master/contrib/systemd/gitea.service
uncomment postgresql.service
cp gitea.service /etc/systemd/system/
systemctl enable gitea
systemctl start gitea
## PostGreSQL
apt install postgresql
su postgres
createuser gitea
createdb gitea -O gitea
server {
listen 80;
server_name git.sessionkrkn.fr;
location / {
proxy_pass http://10.0.2.5:3000/;
proxy_set_header X-Real-IP $remote_addr;
}
}
chmod 750 /etc/gitea
chmod 644 /etc/gitea/app.ini