Muestra las diferencias entre dos versiones de la página.
Ambos lados, revisión anterior Revisión previa Próxima revisión | Revisión previa | ||
gitea-pasos [2017/07/09 20:12] fanta [Gitea] |
gitea-pasos [2017/07/09 20:19] (actual) fanta |
||
---|---|---|---|
Línea 20: | Línea 20: | ||
==== La configuración de Nginx ==== | ==== La configuración de Nginx ==== | ||
- | nano /etc/nginx/sites-available/git.criptonomicom.pantallasnegras.net | + | * nano /etc/nginx/sites-available/git.loquesea.dominio.com |
Línea 26: | Línea 26: | ||
server{ | server{ | ||
listen 80; | listen 80; | ||
- | server_name git.criptonomicom.pantallasnegras.net; | + | server_name git.loquesea.dominio.com; |
location /.well-known/acme-challenge { | location /.well-known/acme-challenge { | ||
root /home/git/www; | root /home/git/www; | ||
Línea 34: | Línea 34: | ||
} | } | ||
} | } | ||
+ | </code> | ||
- | ln -s /etc/nginx/sites-available/git.criptonomicom.pantallasnegras.net /etc/nginx/sites-enabled/git.criptonomicom.pantallasnegras.net | + | * ln -s /etc/nginx/sites-available/git.loquesea.dominio.com /etc/nginx/sites-enabled/git.loquesea.dominio.com |
- | + | * /etc/init.d/nginx reload | |
- | /etc/init.d/nginx reload | + | * certbot certonly --rsa-key-size 4096 --webroot -w /home/git/www/ -d git.loquesea.dominio.com |
- | + | * nano /etc/nginx/sites-enabled/git.loquesea.dominio.com | |
- | + | ||
- | certbot certonly --rsa-key-size 4096 --webroot -w /home/git/www/ -d git.criptonomicom.pantallasnegras.net | + | |
- | + | ||
- | nano /etc/nginx/sites-enabled/git.criptonomicom.pantallasnegras.net | + | |
+ | <code> | ||
server{ | server{ | ||
listen 80; | listen 80; | ||
- | server_name git.criptonomicom.pantallasnegras.net; | + | server_name git.loquesea.dominio.com; |
location /.well-known/acme-challenge { | location /.well-known/acme-challenge { | ||
Línea 60: | Línea 58: | ||
listen 443; | listen 443; | ||
ssl on; | ssl on; | ||
- | server_name git.criptonomicom.pantallasnegras.net; | + | server_name git.loquesea.dominio.com; |
- | ssl_certificate /etc/letsencrypt/live/git.criptonomicom.pantallasnegras.net/fullchain.pem; | + | ssl_certificate /etc/letsencrypt/live/git.loquesea.dominio.com/fullchain.pem; |
- | ssl_certificate_key /etc/letsencrypt/live/git.criptonomicom.pantallasnegras.net/privkey.pem; | + | ssl_certificate_key /etc/letsencrypt/live/git.loquesea.dominio.com/privkey.pem; |
location / { | location / { | ||
proxy_pass http://127.0.0.1:3000; | proxy_pass http://127.0.0.1:3000; | ||
Línea 74: | Línea 72: | ||
</code> | </code> | ||
- | /etc/init.d/nginx reload | + | * /etc/init.d/nginx reload |
- | + | * su - git | |
- | su - git | + | * mkdir www |
- | mkdir www | + | * mkdir gitea && cd gitea |
- | mkdir gitea && cd gitea | + | * wget -O gitea https://dl.gitea.io/gitea/1.1.2/gitea-1.1.2-linux-amd64 |
- | wget -O gitea https://dl.gitea.io/gitea/1.1.2/gitea-1.1.2-linux-amd64 | + | * chmod +x gitea |
- | chmod +x gitea | + | * exit |
- | + | * root@loquesea:/etc/init.d# wget https://raw.githubusercontent.com/go-gitea/gitea/master/contrib/init/debian/gitea | |
- | exit | + | * chmod +x gitea |
- | + | * update-rc.d gitea defaults | |
- | + | * /etc/init.d/gitea start | |
- | root@criptonomicom:/etc/init.d# wget https://raw.githubusercontent.com/go-gitea/gitea/master/contrib/init/debian/gitea | + | |
- | + | ||
- | chmod +x gitea | + | |
- | + | ||
- | update-rc.d gitea defaults | + | |
- | + | ||
- | /etc/init.d/gitea start | + | |
+ | {{tag>Ingoberlab microapuntes}} |