Resolved: Fix SSL renewal issue on Gitlab Server

PROBLEM : I had hosted a gitlab server on Azure and it was not getting autorenewed. SOLUTION :  1. Check the current SSL cert path: sudo grep -n "ssl_certificate" /var/opt/gitlab/nginx/conf/gitlab-http.conf OR sudo grep -n "ssl_certificate" /etc/gitlab/gitlab.rb  You are likely to see something like this: nginx['ssl_certificate'] = "/etc/gitlab/ssl/gitlab.example.com.crt" nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/gitlab.example.com.key"  2. In my case, I was using gitlab let'sencrypt. So, I installed certbot. sudo apt update && sudo apt install certbot -y  3. Obtain Fresh Certificate sudo gitlab-ctl stop nginx sudo certbot certonly --standalone -d gitlab.yourdomain.com sudo gitlab-ctl start nginx 4. Configure Gitlab to use new cert external_url "https://gitlab.yourdomain.com" letsencrypt['enable'] = false nginx['s...

Installing Ubuntu on Windows 10 using Powershell

Hey Friends,

Wish you a very happy new year 2019. This year I am going to start learning about cloud, vm(s), running dotnet core apps on linux distributions and hence will have our hands dirty on ubuntu.

I have been developing .Net apps from past many years now but I always wanted to run my apps on linux.

Glad to share that Windows 10 allows you to install linux distributions and hence we'll install ubuntu

I am going to demonstrate here, how you can install ubuntu on Windows 10 using powershell.
  • Open Powershell and run the following command

    Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1604 -OutFile Ubuntu.appx -UseBasicParsing
    
  • You will get an ubntu.appx file. Double click to run the installation.
  • Woo hoo! You have linux installed in your system. Click on start and you should be able to see it.