os:linux:debian
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| os:linux:debian [2017/12/07 15:08] – ebaer | os:linux:debian [2018/11/27 19:54] (current) – [Disable ipv6] ebaer | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Debian | + | ====== Debian ====== |
| ===== Initial ===== | ===== Initial ===== | ||
| Line 25: | Line 25: | ||
| </ | </ | ||
| + | ===== Disable ipv6 ===== | ||
| - | ===== Docker && Gitlab && subdomain && ssl ===== | + | < |
| + | nano / | ||
| - | <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 |
| - | </ | + | |
| - | <file yml docker-compose.yml> | + | ip -6 addr del <ipv6address>/<prefixlength> |
| - | web: | + | |
| - | image: ' | + | |
| - | restart: always | + | |
| - | hostname: ' | + | |
| - | environment: | + | |
| - | GITLAB_OMNIBUS_CONFIG: | + | |
| - | external_url ' | + | |
| - | # Add any other gitlab.rb configuration here, each on its own line | + | |
| - | ports: | + | |
| - | - ' | + | |
| - | - ' | + | |
| - | volumes: | + | |
| - | - '/ | + | |
| - | - '/ | + | |
| - | - '/ | + | |
| - | </file> | + | |
| - | < | + | echo " |
| - | # launch container: | + | echo " |
| - | 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 / | ||
| - | cat cert.pem fullchain.crt > gitlab.hostname.de.crt | ||
| - | cp privkey.pem gitlab.hostname.de.key | ||
| - | mv gitlab.* / | ||
| - | |||
| - | |||
| - | </ | ||
os/linux/debian.1512655737.txt.gz · Last modified: 2017/12/07 15:08 by ebaer
