Skip to main content Link Search Menu Expand Document (external link)

NGINX

apt install nginx

edit the file /etc/nginx/sites-available/docintel.mydomain.com

server {
    listen        80;
    server_name   docintel.mydomain.com;
    location / {
        proxy_pass                http://127.0.0.1:5005;
      	proxy_busy_buffers_size   512k;
      	proxy_buffers             4 512k;
      	proxy_buffer_size         256k;
        proxy_http_version        1.1;
        proxy_set_header          Upgrade $http_upgrade;
        proxy_set_header          Connection keep-alive;
        proxy_set_header          Host $host;
        proxy_cache_bypass        $http_upgrade;
        proxy_set_header          X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header          X-Forwarded-Proto $scheme;
    }
}
# ln -s /etc/nginx/sites-available/docintel /etc/nginx/sites-enabled/
# rm /etc/nginx/sites-enabled/default 
nginx -t
nginx -s reload

install let’s encrypt certificate

https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-22-04