diff options
Diffstat (limited to 'feed.rss')
-rw-r--r-- | feed.rss | 26 |
1 files changed, 25 insertions, 1 deletions
@@ -1,4 +1,28 @@ -<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content"><channel><title>Navan Chauhan</title><description>Welcome to my personal fragment of the internet. Majority of the posts should be complete.</description><link>https://navanchauhan.github.io/</link><language>en</language><lastBuildDate>Sun, 11 Oct 2020 16:28:56 +0530</lastBuildDate><pubDate>Sun, 11 Oct 2020 16:28:56 +0530</pubDate><ttl>250</ttl><atom:link href="https://navanchauhan.github.io/feed.rss" rel="self" type="application/rss+xml"/><item><guid isPermaLink="true">https://navanchauhan.github.io/posts/2020-10-11-macOS-Virtual-Cam-OBS</guid><title>Trying Different Camera Setups</title><description>Comparison of different cameras setups for using as a webcam and tutorials for the same.</description><link>https://navanchauhan.github.io/posts/2020-10-11-macOS-Virtual-Cam-OBS</link><pubDate>Sun, 11 Oct 2020 16:12:00 +0530</pubDate><content:encoded><![CDATA[<h1>Trying Different Camera Setups</h1><ol start="0"><li>Animated Overlays</li><li>Using a modern camera as your webcam</li><li>Using your phone's camera as your webcam</li><li>Using a USB Camera</li></ol><h2>Comparison</h2><p>Here are the results before you begin reading.</p><div class="b-dics"> +<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content"><channel><title>Navan Chauhan</title><description>Welcome to my personal fragment of the internet. Majority of the posts should be complete.</description><link>https://navanchauhan.github.io/</link><language>en</language><lastBuildDate>Tue, 17 Nov 2020 15:50:56 +0530</lastBuildDate><pubDate>Tue, 17 Nov 2020 15:50:56 +0530</pubDate><ttl>250</ttl><atom:link href="https://navanchauhan.github.io/feed.rss" rel="self" type="application/rss+xml"/><item><guid isPermaLink="true">https://navanchauhan.github.io/posts/2020-11-17-Lets-Encrypt-DuckDns</guid><title>Generating HTTPS Certificate using DNS a Challenge through Let's Encrypt</title><description>Short code-snippet to generate HTTPS certificates using the DNS Challenge through Lets Encrypt for a web-server using DuckDNS.</description><link>https://navanchauhan.github.io/posts/2020-11-17-Lets-Encrypt-DuckDns</link><pubDate>Tue, 17 Nov 2020 15:04:00 +0530</pubDate><content:encoded><![CDATA[<h1>Generating HTTPS Certificate using DNS a Challenge through Let's Encrypt</h1><p>I have a Raspberry-Pi running a Flask app through Gunicorn (Ubuntu 20.04 LTS). I am exposing it to the internet using DuckDNS.</p><h2>Dependencies</h2><pre><code><div class="highlight"><span></span>sudo apt update <span class="o">&&</span> sudo apt install certbot -y +</div></code></pre><h2>Get the Certificate</h2><pre><code><div class="highlight"><span></span>sudo certbot certonly --manual --preferred-challenges dns-01 --email senpai@email.com -d mydomain.duckdns.org +</div></code></pre><p>After you accept that you are okay with you IP address being logged, it will prompt you with updating your dns record. You need to create a new <code>TXT</code> record in the DNS settings for your domain.</p><p>For DuckDNS users it is as simple as entering this URL in their browser:</p><pre><code><div class="highlight"><span></span>http://duckdns.org/update?domains<span class="o">=</span>mydomain<span class="p">&</span><span class="nv">token</span><span class="o">=</span>duckdnstoken<span class="p">&</span><span class="nv">txt</span><span class="o">=</span>certbotdnstxt +</div></code></pre><p>Where <code>mydomain</code> is your DuckDNS domain, <code>duckdnstoken</code> is your DuckDNS Token ( Found on the dashboard when you login) and <code>certbotdnstxt</code> is the TXT record value given by the prompt.</p><p>You can check if the TXT records have been updated by using the <code>dig</code> command:</p><pre><code><div class="highlight"><span></span>dig navanspi.duckdns.org TXT +<span class="p">;</span> <<>> DiG <span class="m">9</span>.16.1-Ubuntu <<>> navanspi.duckdns.org TXT +<span class="p">;;</span> global options: +cmd +<span class="p">;;</span> Got answer: +<span class="p">;;</span> ->>HEADER<span class="s"><<- opco</span>de: QUERY, status: NOERROR, id: <span class="m">27592</span> +<span class="p">;;</span> flags: qr rd ra<span class="p">;</span> QUERY: <span class="m">1</span>, ANSWER: <span class="m">1</span>, AUTHORITY: <span class="m">0</span>, ADDITIONAL: <span class="m">1</span> + +<span class="p">;;</span> OPT PSEUDOSECTION: +<span class="p">;</span> EDNS: version: <span class="m">0</span>, flags:<span class="p">;</span> udp: <span class="m">65494</span> +<span class="p">;;</span> QUESTION SECTION: +<span class="p">;</span>navanspi.duckdns.org. IN TXT + +<span class="p">;;</span> ANSWER SECTION: +navanspi.duckdns.org. <span class="m">60</span> IN TXT <span class="s2">"4OKbijIJmc82Yv2NiGVm1RmaBHSCZ_230qNtj9YA-qk"</span> + +<span class="p">;;</span> Query time: <span class="m">275</span> msec +<span class="p">;;</span> SERVER: <span class="m">127</span>.0.0.53#53<span class="o">(</span><span class="m">127</span>.0.0.53<span class="o">)</span> +<span class="p">;;</span> WHEN: Tue Nov <span class="m">17</span> <span class="m">15</span>:23:15 IST <span class="m">2020</span> +<span class="p">;;</span> MSG SIZE rcvd: <span class="m">105</span> +</div></code></pre><p>DuckDNS almost instantly propagates the changes but for other domain hosts, it could take a while.</p><p>Once you can ensure that the TXT record changes has been successfully applied and is visible through the <code>dig</code> command, press enter on the Certbot prompt and your certificate should be generated.</p><h2>Renewing</h2><p>As we manually generated the certificate <code>certbot renew</code> will fail, to renew the certificate you need to simply re-generate the certificate using the above steps.</p><h2>Using the Certificate with Gunicorn</h2><p>Example Gunicorn command for running a web-app:</p><pre><code><div class="highlight"><span></span>gunicorn api:app -k uvicorn.workers.UvicornWorker -b <span class="m">0</span>.0.0.0:7589 +</div></code></pre><p>To use the certificate with it, simply copy the <code>cert.pem</code> and <code>privkey.pem</code> to your working directory ( change the appropriate permissions ) and include them in the command</p><pre><code><div class="highlight"><span></span>gunicorn api:app -k uvicorn.workers.UvicornWorker -b <span class="m">0</span>.0.0.0:7589 --certfile<span class="o">=</span>cert.pem --keyfile<span class="o">=</span>privkey.pem +</div></code></pre><p>Caveats with copying the certificate: If you renew the certificate you will have to re-copy the files</p>]]></content:encoded></item><item><guid isPermaLink="true">https://navanchauhan.github.io/posts/2020-10-11-macOS-Virtual-Cam-OBS</guid><title>Trying Different Camera Setups</title><description>Comparison of different cameras setups for using as a webcam and tutorials for the same.</description><link>https://navanchauhan.github.io/posts/2020-10-11-macOS-Virtual-Cam-OBS</link><pubDate>Sun, 11 Oct 2020 16:12:00 +0530</pubDate><content:encoded><![CDATA[<h1>Trying Different Camera Setups</h1><ol start="0"><li>Animated Overlays</li><li>Using a modern camera as your webcam</li><li>Using your phone's camera as your webcam</li><li>Using a USB Camera</li></ol><h2>Comparison</h2><p>Here are the results before you begin reading.</p><div class="b-dics"> <img src="https://navanchauhan.github.io//assets/posts/obs/normal.png" alt="Normal Webcam"> <img src="https://navanchauhan.github.io//assets/posts/obs/usb.png" alt="USB Webcam"> <img src="https://navanchauhan.github.io//assets/posts/obs/5S.png" alt="Camo iPhone 5S"> |