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...

Using VSCode and plantUML together to create UML diagrams and process flow diagrams

 Creating UML diagrams like sequence diagrams, class diagrams, use case diagrams etc are a daily activity a developer does.

In this blog, I am going to share with you on "How to use Visual Studio Code (VSCode)" along with plantuml extension to create UML diagrams.

Here are the pre-requisites:

  1. Download and install VSCode.
  2. Download and install extension PlantUML.
  3. Create a folder say create_flow_diagrams and create a directory src
  4. Create another directory flow_diagrams_generated
  5. Create a directory .vscode and add settings.json with the following configuration:





{
    "plantuml.commandArgs": [],
    "plantuml.diagramsRoot": "src",
    "plantuml.exportOutDir": "flow_diagrams_generated"
}

You can 

Simply press command + shift + P and select export diagrams.



 Yay! you would get the diagrams exported as png or svg in the flow_diagrams_generated folder.