Posts

Showing posts from August, 2024

Install docker ubuntu

 sudo apt update sudo apt install apt-transport-https ca-certificates curl software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" apt-cache policy docker-ce sudo apt install docker-ce sudo systemctl status docker Eksekusi tanpa sudo sudo usermod -aG docker ${USER} su - ${USER} groups sudo usermod -aG docker username

Install SSL

 sudo apt update  sudo apt install nginx certbot python3-certbot-nginx nano /etc/nginx/sites-available/domain.com server {     listen 80;     server_name domain.com;     location / {         proxy_pass http://127.0.0.1:8080;         proxy_set_header Host $host;         proxy_set_header X-Real-IP $remote_addr;         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;         proxy_set_header X-Forwarded-Proto $scheme;     } } sudo ln -s /etc/nginx/sites-available/domain.com /etc/nginx/sites-enabled/ sudo nginx -t sudo systemctl restart nginx sudo certbot --nginx -d domain.com

Popular posts from this blog

Install Maven pada Ubuntu 22.04

Install SSL

Install docker ubuntu