Nginx

HTTP Basic Auth for Nginx

August 4, 2024
2024, Engineering
Nginx, Devops, Security

Introduction # Nginx has ability to enforce HTTP Basic Auth. Following are instruction on how to setup Creating a password through htpasswd like so sudo htpasswd -c /etc/nginx/.htpasswd ducky To install htpasswd command we need to run sudo apt-get install apache2-utils The above command will prompt for password for username ducky. Password file /etc/nginx/.htpasswd will be created Once this is done, we need to modify nginx’s config, specifically location block. ...

Notes on Nginx and Hugo

July 29, 2024
2024, Engineering
Devops, Nginx, Hugo

tldr # We got Rubber Ducky and FineAI working again. Both of these assets are built using Hugo. Overall steps # Starting a new site Installing theme Writing some content Version controlling it Writing a Nginx’s config Ensuring sub-domains are mapped correctly Ensure SSL is working on the sub-domain Significance of this activity is: With Nginx we can map multiple sites onto a single server. Since traffic is not much, we can map multiple sites onto single machine. ...