Mise à jour de 'actual.list'
parent
1eed26c877
commit
a3e0df7e6c
19
actual.list
19
actual.list
|
@ -1,12 +1,9 @@
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install postgres
|
apt-get install -y git
|
||||||
https://luxagraf.net/src/gitea-nginx-postgresql-ubuntu-1804
|
|
||||||
|
|
||||||
adduser --system --shell /bin/bash --group --disabled-password --home /home/git git
|
adduser --system --shell /bin/bash --group --disabled-password --home /home/git git
|
||||||
apt-get -y install git
|
|
||||||
wget -O gitea https://dl.gitea.io/gitea/1.9.6/gitea-1.9.6-linux-amd64
|
wget -O gitea https://dl.gitea.io/gitea/1.9.6/gitea-1.9.6-linux-amd64
|
||||||
chmod +x gitea
|
chmod +x gitea
|
||||||
./gitea web
|
|
||||||
sudo cp gitea /usr/local/bin/gitea
|
sudo cp gitea /usr/local/bin/gitea
|
||||||
mkdir -p /var/lib/gitea/{custom,data,indexers,public,log}
|
mkdir -p /var/lib/gitea/{custom,data,indexers,public,log}
|
||||||
chown git:git /var/lib/gitea/{data,indexers,log}
|
chown git:git /var/lib/gitea/{data,indexers,log}
|
||||||
|
@ -17,8 +14,7 @@ chmod 770 /etc/gitea
|
||||||
|
|
||||||
|
|
||||||
wget https://raw.githubusercontent.com/go-gitea/gitea/master/contrib/systemd/gitea.service
|
wget https://raw.githubusercontent.com/go-gitea/gitea/master/contrib/systemd/gitea.service
|
||||||
|
uncomment postgresql.service
|
||||||
uncomment the line After=postgresql.service
|
|
||||||
cp gitea.service /etc/systemd/system/
|
cp gitea.service /etc/systemd/system/
|
||||||
systemctl enable gitea
|
systemctl enable gitea
|
||||||
systemctl start gitea
|
systemctl start gitea
|
||||||
|
@ -30,4 +26,13 @@ su postgres
|
||||||
createuser gitea
|
createuser gitea
|
||||||
createdb gitea -O gitea
|
createdb gitea -O gitea
|
||||||
|
|
||||||
proxy_pass http://10.0.2.5:3000
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name git.sessionkrkn.fr;
|
||||||
|
location / {
|
||||||
|
proxy_pass http://localhost:3000;
|
||||||
|
}
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue