<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Supervisor on Cesar Gimenes</title><link>https://crg.eti.br/en/tags/supervisor/</link><description>Recent content in Supervisor on Cesar Gimenes</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>crg@crg.eti.br (Cesar Gimenes)</managingEditor><webMaster>crg@crg.eti.br (Cesar Gimenes)</webMaster><lastBuildDate>Fri, 20 Dec 2024 01:34:17 -0300</lastBuildDate><atom:link href="https://crg.eti.br/en/tags/supervisor/index.xml" rel="self" type="application/rss+xml"/><item><title>Deploying an API Behind a Reverse Proxy with Caddyserver and Go</title><link>https://crg.eti.br/en/post/subindo-api-via-proxy-reverso-caddy-go/</link><pubDate>Fri, 20 Dec 2024 01:34:17 -0300</pubDate><author>crg@crg.eti.br (Cesar Gimenes)</author><guid>https://crg.eti.br/en/post/subindo-api-via-proxy-reverso-caddy-go/</guid><description>&lt;p>A friend asked me for an example of how to deploy an API behind a reverse proxy using Go. Here is a short walkthrough.&lt;/p>
&lt;p>First, set up a server and register its IP with your DNS provider. Assign the IP to a name so you can create an HTTPS certificate for the machine.&lt;/p>
&lt;p>Configure the machine&amp;rsquo;s firewall and open only ports 22 (SSH), 80 (HTTP), and 443 (HTTPS).&lt;/p>
&lt;h2 id="caddy">Caddy&lt;/h2>
&lt;p>I use the Caddy HTTP server. It is practical and creates HTTPS certificates automatically. By default, it redirects HTTP requests to HTTPS.&lt;/p></description></item></channel></rss>