These are steps to change your http routes to https.
Step1. Go to this url and download the zip installer from here ( nginx: download ) and unzip it.
Step 2. Generate the certificate for your machine. Take reference from here.
Step 3. Copy your certsin your windows machine, if created from another machine and paste it on the nginx folder (root location).
Step 4. Update your ~/nginx/conf/nginx.conf file with this one. Replace localhost with your dns name and proxy_pass url with your local base url on which your application is working.
This post will describe an easy way to manage your Azure storage data through a simple tool that is available in Linux, MAC os, and Windows.
You can download the one according to your operating system through this URL.
After successful download, click to install
Accept the terms and click Install:
Most people often find it difficult to set up docker and configure it when running behind any proxy server, if you’re trying to run Docker without having direct access to the web you have to configure the docker daemon to use a proxy server. Without it, you won’t be able to pull or push any image.
The image above is for windows docker proxy settings and you will have the same settings with the Linux servers as well, with the steps mentioned below.
I see a lot of tutorials on the internet describing how to apply the proxy in the…
You will get to see a lot like this error while working with docker and the VM/Servers that are running behind some proxy or managed by your organization.
Assuming you have the certificate issued by your IT team.
The following steps will help you get rid of this problem :
openssl x509 -inform DER -in certificate.cer -out certificate.crt
sudo mkdir /usr/share/ca-certificates/extra
sudo cp certificate.crt /usr/share/ca-certificates/extra/certificate.crt
sudo nano /etc/ca-certificates.conf
In this post, we will talk about how to configure your applications to run as a system service in Linux.
STEP 1. Make a backoffice.service file in /etc/systemd/system/ directory.
Description= Back office service
ExecStart=/usr/bin/env node /path/to/server/app.js
STEP 2. Run this command to make your daemon aware of your application.
STEP 3. Run this command to start your application.
systemctl start backoffice
systemctl enable backoffice
STEP 4. Check your application as a service
service backoffice status
journalctl -u backoffice
You can also use other services such as nohup, forever, pm2, etc. to configure your application or you can use Linux crontab as well to make your application available all the time.
This post is about how to install different node js version or node version manager for different flavors of Linux (Ubuntu/Debian/Centos/Redhat) systems.
curl -sL https://deb.nodesource.com/setup_14.x | sudo bash -
sudo apt-get install -y nodejs# Using Centos with No root privileges
curl -sL https://rpm.nodesource.com/setup_14.x | sudo bash -# Using centos with LTS version
curl -sL https://rpm.nodesource.com/setup_lts.x | bash -
# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
sudo apt-get install -y nodejs
# Using Debian, as root
curl -sL https://deb.nodesource.com/setup_13.x | bash -
apt-get install -y nodejscurl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh …
In this post, we will be discussing how to integrate our Gitlab Server with keycloak.
Keycloak server: keycloak.server.com
GITLAB server: gitlab.server.com
NOTE: For GITLAB & KEYCLOAK SETUP, follow the below mention links.
STEP 1. Create a SAML Client in Keycloak.
Our realm name is Devops. Yours can be different. So change Devops with your own realm name wherever possible.
GitLab is an important DevOps lifecycle tool that provides a Git-repository manager providing wiki, issue-tracking, and also it acts as a Continous Integration server providing various deployment pipeline features like creating your own runner, integrating docker registry with GitLab etc.
sudo docker run --detach --hostname aws.com
--env GITLAB_OMNIBUS_CONFIG="external_url 'http://aws.com';" gitlab/gitlab-ee:latest
Hostname: Your server DNS name.
GITLAB_OMNIBUS_CONFIG: Your server DNS name followed by http
GitLab-ee:latest: It is the Gitlan Enterprise Edition docker image.
After running this command, browse to your server address you will prompt…
Keycloak is an Open Source Identity and Access Management solution for modern Applications and Services. It is used to add authentication and user authorization.
To setup keycloak Service, follow these steps:-
#Download the archive.
#Unzip this archieve
#Open Bin folder and run this command to start the keycloak server.
cd keycloak/bin &&
./standalone.sh -b 0.0.0.0 -Djboss.socket.binding.port-offset=109
#Open another terminal to configure keycloak server to set credentials as well as to run without ssl.
./add-user-keycloak.sh — realm master — user admin — password adminPassword
admin will be the username of the master realm and adminpassword is the…
#login with a user
oc login https://192.168.99.100:6443 -u developer -p developer
oc login --token=<token> --server=https://192.168.33.10:6443#login as system admin
oc login -u system:admin#User Information
oc whoami -t -> get token#View your configuration
oc config view
# list all project
oc projects# using project
oc project <myproject>#Use specific template
oc new-app https://github.com/name/project --template=<template>
#New app from a different branch
oc new-app --name=node-dev https://github.com/name/project.git#branchname
#Create objects from a file:
oc create -f myobject.yml -n <myproject>
oc process -f myobject.yml | oc create -f -#Create or merge objects from file oc apply -f myobject.yaml…
A DevOps who is passionate about Autom@tion.