5.) Installing Nginx
- connect via ssh to your pi
- we create now a directory for nginx, a config.json file and a docker-compose.yml
- type in: mkdir nginx
- type in: cd nginx
- type in: nano docker-compose.yml
- paste in:
- now you have access via webbrowser for your nginx proxy manager : http://ip-adress-of-your-pi:81
- on first login the credentials are
username: admin@example.com
passwrod: changeme
- create your hosts you need
For Apple Users:
You must add an additional line in your nginx config to avoid parsing errors
1.)
- go to portainer
- open the nginx app container console
- type in:
update
- type in:
apt install nano
- type in:
echo "proxy_hide_header Upgrade;" >> /etc/nginx/conf.d/default.conf
- exit and restart the nginx app container
2.)
- connect via ssh to your pi
- type in:
sudo nano /etc/apache2/apache2.conf
- after this line : Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
- type in:
Header unset Upgrade
- save and exit (Strg+x, y, enter)
- reboot