Ubuntu Server 20.04
$sudo vim /etc/netplan/{config}.yaml
gateway 140.124.183.254
網路卡 DNS 140.124.13.1, 140.124.13.2
Gitlab server DNS: css-gitlab.csie.ntut.edu.tw
Jenkins DNS: css-lab.csie.ntut.edu.tw
sudo netplan apply
https://phoenixnap.com/kb/ssh-to-connect-to-remote-server-linux-or-windows
https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
x509, unknown authorit
的問題apt update
會有 CA 的問題$ echo "export GITLAB_HOME=/srv/gitlab" >> ~/.bashrc
https://docs.gitlab.com/omnibus/docker/
https://github.com/jenkinsci/docker/blob/master/README.md
https://blog.programster.org/hosting-multiple-dockerized-websites-on-a-single-host
https://ssl-gitlab.csie.ntut.edu.tw/software-system-lab/https_setting
Note: the setting of nginx is wrong. See Nginx Setting below.
https://github.com/nginx-proxy/docker-letsencrypt-nginx-proxy-companion
Modify site-available/default instead of conf
https://coderrocketfuel.com/article/default-nginx-configuration-file-inside-sites-available-default