<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>CORS on Tux-Sudo</title><link>https://blog.tux-sudo.com/categories/cors/</link><description>Recent content in CORS on Tux-Sudo</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 05 May 2020 09:43:52 +0000</lastBuildDate><atom:link href="https://blog.tux-sudo.com/categories/cors/index.xml" rel="self" type="application/rss+xml"/><item><title>Easy SSL Termination - CORS Edition</title><link>https://blog.tux-sudo.com/posts/caddy-reverse-proxy-ssl-cors/</link><pubDate>Tue, 05 May 2020 09:43:52 +0000</pubDate><guid>https://blog.tux-sudo.com/posts/caddy-reverse-proxy-ssl-cors/</guid><description>&lt;p&gt;I&amp;rsquo;ve always been a big fan of &lt;a href="https://caddyserver.com/"&gt;Caddy&lt;/a&gt;, and it just got a 2.0 release! In the meantime, I have developed another throwaway service called &lt;a href="https://github.com/tchaudhry91/archy"&gt;Archy&lt;/a&gt;, and naturally, it deserves the best Ops can offer.&lt;/p&gt;
&lt;p&gt;So, here&amp;rsquo;s the scenario. I need a simple HTTPS service exposed to the world. I have a VPS with a public IP. Of course, I&amp;rsquo;ll celebrate Caddy&amp;rsquo;s 2nd birth and write a simple Caddyfile.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;archy.tux-sudo.com
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;reverse_proxy /* 127.0.0.1:15999
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Done. Cool. See you later.&lt;/p&gt;</description></item></channel></rss>