Categories
Linux

How to run Gogs behind HAProxy serving https (SSL/TLS) connections

I run Gogs in a LXD container which runs behind HAProxy in another LXD container. HAProxy handles SSL/TLS connection (SSL Termination). Note: Gogs is a Git service like GitHub or GitLabs. It is written in Go and normally used to host your own git server along with GitHub like interface and functionality (for free). As […]

Categories
Linux

How to provide Secure Isolated (Restricted) SFTP Access for file transfer

Often we need to provide secure but restricted sftp access to our clients to upload or download large files. Regular sftp accounts allow the users to view login names of other users/clients and in many default installations even allow them to browse through the directories and files. In addition, they can also view your system […]

Categories
Tech

Why more decision makers prefer SaaS Solution

Categories
Spirituality

Nirvana Satkam

॥ निर्वाण षटकम्॥ मनोबुद्ध्यहङ्कार चित्तानि नाहं   न च श्रोत्रजिह्वे न च घ्राणनेत्रे ।   न च व्योम भूमिर्न तेजो न वायुः   चिदानन्दरूपः शिवोऽहम् शिवोऽहम् ॥१॥ I am neither the mind, nor the intellect, nor the ego, nor the mind-stuff ; I am neither the body, nor the changes of the body ; I am neither […]

Categories
Tech

Economic Impact of Bad Code ~ 85B USD GDP Loss

Categories
Linux

Nginx Server Error – 413 Request Entity Too Large

If you’re getting 413 Request Entity Too Large error trying to upload file to nginx server then you need to increase the size limit in nginx.conf . Add client_max_body_size xxM inside the server section where xx is the size in MB.

Categories
Tech

SOGo Groupware database update after yum upgrade is not normally necessary as it merely reduces the number of tables created for a new collection.

Categories
Linux

How to list all URL's in Redirect chain

This simple utility is extremely useful in detecting bad redirects and loops, specially in big websites. You can also include it in scripts. wget http://gmail.com 2>&1 | grep Location: The response, in this case, is: Location: https://www.google.com/gmail/ [following] Location: https://mail.google.com/mail/ [following] Location: https://accounts.google.com/ServiceLogin?service=mail&passive=true&rm=false&continue=https://mail.google.com/mail/&ss=1&scc=1&ltmpl=default&ltmplcache=2&emr=1&osid=1# [following]

Categories
Tech

Pros and Cons of Hosting your own Nameservers

Benefits of hosting your Nameservers Ease of changing hosting providers: Having your own nameservers make it easy when you are changing your hosting providers for two reasons: Zero downtime in switching Minimal change on Domain Register (change Nameserver and Hostname reords only) Other nameserver changes can be done easily with your own nameserver, even scripted […]

Categories
Linux

OVH: How to add Additional IP Addresses (IP Alias) on Ubuntu 16.04 / 18.04

Adding additional IP addresses in OVH is rather unconventional and the guide they point to in their mail is non-existent. The process, fortunately, is simple: ssh to the server as root cd /etc/systemd/network/ vi *-default.network Add the new IP address after the original IPv4 Address DHCP=no Address=Main_IP/24 Address=Failover_IP/32 Save and close the file Reboot the […]