Nginx reverse proxy block

server {server_name dev-api.example.net; location / { proxy_pass http://localhost:3000; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade'; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; } access_log /var/log/nginx/access; error_log /var/log/nginx/error; }

How to reduce space consumption of /var/lib/mysql directory?

Today mysql have many awesome features for replications. Some are automatically enabled in new versions. In mysql version 8, bin logs generates automatically with a default expiry date of 28 days. This will consume much more space than our expectations and Nginx will show error 504 due to space shortage. To solve this issue, follow …

Could not open socket: stream_socket_client(): unable to connect to tcp://127.0.0.1:25 (Connection refused) Fix for this error with SMTP.

The cause for this error is connection issue to port 25. First we have to check if there is any SMTP service enabled or not.  Then check if the port is using by any other service it can check by using netstat -plnt | grep ':25' command. If this port is not using by any …

How to connect Connect Azure AD (MsolService) using powershell.

1) Download and install SharePoint Online Management Shell 2) Download and install Microsoft Online Services Sign-In Assistant for IT Professionals RTW 3) Install the Azure AD Module by running below cmdlet Install-Module MSOnline 4) Install MSOnline Public Preview module by running below cmdlet Install-Module AzureADPreview 5) Connect to Azure AD by running below cmdlets $Msolcred …

VIRTUALIZATION AND THE INTERNET OF THINGS

EXECUTIVE SUMMARY Industrial control devices have been around for years. The initial devices were manufactured with a personality, a business logic that was already built in when they left the manufacturing plant to perform one fixed function (and nothing else). They were deployed for specific tasks such as controlling industrial equipment, electricity generation, power plants, …

Nedim's IT CORNER

Far and away the best prize that life offers is the chance to work hard at work worth doing

Firmware Security

Hastily-written news/info on the firmware security/development communities, sorry for the typos.

CISA Analysis Reports

I am an AWS solutions architect and cloud admin. I wants to share my thoughts and acquired knowledge towards various systems through this site.