Tag: Curl

  • Kubernetes – Allow Only Cloudflare CDN Through Nginx Ingress

    Kubernetes – Allow Only Cloudflare CDN Through Nginx Ingress

    If you are like me, and enjoy the world-encompassing CDN from Cloudflare, you “proxy” your domain through Cloudflare towards your Kubernetes Ingress. Why then, should you allow any other traffic to the Ingress? Here’s how to whitelist Cloudflare only in Nginx Ingress. Cloudflares IP-ranges can be found here: https://www.cloudflare.com/ips/ Whitelist them on the Nginx Ingress…

  • CURL Print Only Header

    CURL Print Only Header

    Sometimes you need to debug, or test, some web-server and you only need to read the response header from your request. Curling and scrolling, or curling and less:ing… nah. All you need to remember is -sIX GET: Example output: Watch your head(er) 👾

  • Docker – Useful CURL:s For Querying Private Registry

    Docker – Useful CURL:s For Querying Private Registry

    Keep it minimal, who needs a fancy GUI for your Docker Registry when you have, CURL? 😉 Get all container images from registry: Example output: List all tags for container image: Example output: TIP, combine the curl with -s and jq for pretty output: Keep it CURL:in 👾

  • Docker – Host Your Own Private Container Registry

    Docker – Host Your Own Private Container Registry

    Docker Hub (hub.docker.com) provides a great and Free service for pushing, and pulling of course, Docker containers. Many of the major software providers use Docker Hub for their primary container distribution, and you yourself can create an account and push your own images. They do, however, only allow one free private repository. This may not…

  • Mount FTP-servers using CurlFTPFS in Linux

    Allot of us server/website administrators use FTP to quickly upload new files and changes to the server. But when you are tinkering with something on the server, and you quickly want to see the effect. It can be quite hectic when you have to login, upload changes and check several times. Especially when the FTP…