User Tools

Site Tools


os:linux:debian

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
os:linux:debian [2017/12/07 15:08] ebaeros:linux:debian [2018/11/27 19:54] (current) – [Disable ipv6] ebaer
Line 1: Line 1:
-====== Debian server ======+====== Debian ======
 ===== Initial ===== ===== Initial =====
  
Line 25: Line 25:
 </code> </code>
  
 +===== Disable ipv6 =====
  
-===== Docker && Gitlab && subdomain && ssl =====+<code> 
 +nano /etc/sysctl.conf
  
-<code bash> +net.ipv6.conf.all.disable_ipv6 = 1 
-# Install everything: +net.ipv6.conf.default.disable_ipv6 = 1 
-apt-get install apache2 docker docker-compose python-certbot python-certbot-apache +net.ipv6.conf.lo.disable_ipv6 = 1
-</code>+
  
-<file yml docker-compose.yml> +ip -6 addr del <ipv6address>/<prefixlength> dev <interface
-web: +
-  image: 'gitlab/gitlab-ce:latest' +
-  restart: always +
-  hostname: 'gitlab.hostname.de' +
-  environment: +
-    GITLAB_OMNIBUS_CONFIG:+
-      external_url 'https://gitlab.hostname.de:8443' +
-      # Add any other gitlab.rb configuration here, each on its own line +
-  ports: +
-    - '8443:8443' +
-    - '22:22' +
-  volumes: +
-    - '/srv/gitlab/config:/etc/gitlab' +
-    - '/srv/gitlab/logs:/var/log/gitlab' +
-    - '/srv/gitlab/data:/var/opt/gitlab' +
-</file>+
  
-<code bash> +echo "net.ipv6.conf.all.disable_ipv6 = 1" | tee /etc/sysctl.d/01-disable-ipv6.conf 
-# launch container: +echo "net.ipv6.conf.eth0.disable_ipv6=1" | tee /etc/sysctl.d/01-disable-ipv6-eth0.conf 
-docker-compose up+</code>
  
-# install certificate and add subdomain 
-certbot --apache 
-certbot certonly --apache --expand -d hostname.de -d gitlab.hostname.de 
  
-# rework and copy certificate into gitlab data storage: 
-cd /etc/letsencrypt/live/hostname.de 
-cat cert.pem fullchain.crt > gitlab.hostname.de.crt   
-cp privkey.pem gitlab.hostname.de.key   
-mv gitlab.* /srv/gitlab/config/ssl 
- 
- 
-</code> 
  
os/linux/debian.1512655737.txt.gz · Last modified: 2017/12/07 15:08 by ebaer

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki