Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
guFalcon committed Aug 5, 2024
1 parent a925334 commit 39b2199
Show file tree
Hide file tree
Showing 2 changed files with 101 additions and 1 deletion.
98 changes: 98 additions & 0 deletions docker_proxy_ipv6.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# Proxy-Einstellungen mit Docker

## System
```bash
sudo nano /etc/profile.d/proxy.sh
# Add
export ftp_proxy=ftp://user:password@host:port
export http_proxy=http://user:password@host:port
export https_proxy=https://user:password@host:port
export socks_proxy=https://user:password@host:port
```
## Apt
```bash
sudo nano /etc/apt/apt.conf
# Enter the following line
Acquire::http::Proxy "http://proxyserver.some.at:3128";
```
## WGet
```bash
sudo nano /etc/wgetrc
# enable the proxy-lines and enter the server accordingly.
https_proxy = http://proxyserver.some.at:3128/
http_proxy = http://proxyserver.some.at:3128/
ftp_proxy = http://proxyserver.some.at:3128/
```
## Docker Daemon
>Benötigt, um Images zu pullen.
```bash
sudo nano /etc/systemd/system/docker.service.d/http-proxy.conf
# Contents
[Service]
Environment="HTTP_PROXY=http://proxyserver.some.at:3128"
Environment="HTTPS_PROXY=http://proxyserver.some.at:3128"
# This is the place for proxy-exceptions...
Environment="NO_PROXY=localhost,127.0.0.1,docker-registry.example.com,.corp"
##########

# Then restart the docker daemon
sudo systemctl daemon-reload docker
sudo systemctl restart docker
```
## Docker Container
> Von innerhalb der erzeugten Container.
```bash
# Docker-user may be your main user or root.
sudo nano ~/.docker/config.json
# Contents
{
"proxies": {
"default": {
"httpProxy": "http://username:[email protected]",
"httpsProxy": "http://username:[email protected]"
}
}
}
##########
```
## DNS & IPv6
```bash
# Create an IPv6 network:
docker network create --ipv6 --subnet 2001:0DB8::/112 --gateway 2001:db8::1 ip6net
# And use it in the containers like so:
ports:
- "8080:8080"
- "8443:8443"
networks:
- default
- proxy
environment:
- HTTP_PORT=8080
# and at the end of the compose-file:
networks:
default:
external:
name: ip6net
proxy:
external:
name: proxy_default

# Enable IPv6 for docker in general:
sudo nano /etc/docker/daemon.json
# Contents:
{
"experimental": true,
"ip6tables": true,
"dns": ["2001:67c:1434:1:195:149:240:141"]
}
```
## Test from inside container
```bash
# proxy config
env
# dns
ping google.at
dig google.at
curl google.at
wget google.at
```
4 changes: 3 additions & 1 deletion keycloak_update_from_pre_13.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ Then restart Keycloak. After startup go to the following URL and see the debug-o
KEYCLOAK_BASE_URL/realms/master/hostname-debug
```
[Documentation](https://www.keycloak.org/server/hostname#_troubleshooting)

## User Federation an errors
If you've used user federation, the chances are that your setup won't be migrated gracefully. The most common error is that `validateUserPolicy` is enabled or that `writeMode` is not set.
In that case you'll have to go to the database and query the table `components` for `ldap` and then search for the fields in `component_config` and set them correctly.
## Useful Commands
Save/Reload Database:
```bash
Expand Down

0 comments on commit 39b2199

Please sign in to comment.