Posts

Showing posts from February, 2021

STATIC WEBSITE WITH AWS S3 AND CLOUD FRONT CDN

Image
                                   STATIC WEBSITE WITH AWS S3 AND CDN As the title says let us see how to setup static site with S3 and CDN for high delivery performance. S3: First login to your AWS console and navigate to S3 console, Create a S3 bucket in the same name as your website ex: cdn.example.com In the permission tab edit public access and make the bucket as public as below, Update the bucket policy as below which makes the bucket public, {     "Version": "2008-10-17",     "Id": "PolicyForPublicWebsiteContent",     "Statement": [         {             "Sid": "PublicReadGetObject",             "Effect": "Allow",             "Principal": {                 "AWS": "*"             },             "Action": "s3:GetObject",             "Resource": "arn:aws:s3:::cdn.example.com/*"         }     ] } Update the ACl as below, You

Azure AD login for linux and windows(on premise)

Image
                                  Azure AD login for linux and windows(on premise) In this blog I will explain how to login to your on-premise Linux and windows instances using your Azure AD credentials without any need of on-premise AD. First let us see how to do it in ubuntu: For ubuntu we will be using ADAL for nodejs for implementing this. You can get the code from the git-repo here, https://github.com/thuvarageshchiv/adal-for-linux.git  move to your home directory, $ cd ~ $ git clone https://github.com/thuvarageshchiv/adal-for-linux.git $ cd adal-for-linux/adal-auth-ubuntu/aad-login $ ./install.sh  [NAME of YOUR AZURE ACTIVE DIRECTORY] [APP CLIENT ID] Now before running the script we need details of the Azure AD name and native application client ID. To get your directory name just login to Azure active directory and switch to users and select the user for whom the access is needed. The user name has a mail ID like thuvaragesh@ example.com here example.com is your directory name.