---
title: "Shrawan Poudel (@shrawanx) | Hashnode"
description: "shrawanx.com. Read the latest articles by Shrawan Poudel on Hashnode."
url: "https://hashnode.com/@shrawanx"
---

@shrawanx

# Shrawan Poudel

@shrawanx · Kathmandu, Nepal · Joined June 2021

shrawanx.com

[Website](https://shrwn.com.np/)

### [Nginx catch-all config for http:// and https://](https://shrwn.com.np/nginx-catch-all-config-for-http-and-https?utm_source=hashnode&utm_medium=feed)

Catch-all for Port 80 (http://) server { listen 80 default\_server; server\_name \_; return 404; } Catch-all for Port 443 (https://) First generate a self signed cert: openssl req -nodes -x509 -newkey rsa:4096 -keyout self\_key.pem -out self\_...

1 min read · [shrwn.com.np](https://shrwn.com.np/nginx-catch-all-config-for-http-and-https?utm_source=hashnode&utm_medium=feed)

[Nov 28, 2023](https://hashnode.com/posts/nginx-catch-all-config-for-http-and-https/6565a50d48835e2ab34c7b1c)

### [Talk session on WASM: Into WASM the easy way](https://shrwn.com.np/talk-session-on-wasm-into-wasm-the-easy-way?utm_source=hashnode&utm_medium=feed)

Wasm, wasm outside the web, wasmer, wasmtime

1 min read · [shrwn.com.np](https://shrwn.com.np/talk-session-on-wasm-into-wasm-the-easy-way?utm_source=hashnode&utm_medium=feed)

[Jun 14, 2023](https://hashnode.com/posts/talk-session-on-wasm-into-wasm-the-easy-way/648a218f654fba8a894bc9e7)

### [Cloudflare R2 - Generating Presigned URL](https://shrwn.com.np/cloudflare-r2-generating-presigned-url?utm_source=hashnode&utm_medium=feed)

Since, cloudflare R2 is compatible with S3 API, we can simply use boto3 to work with R2 as wll import logging import boto3 from botocore.exceptions import ClientError from botocore.client import Config def create\_presigned\_url(bucket\_name, object\_...

1 min read · [shrwn.com.np](https://shrwn.com.np/cloudflare-r2-generating-presigned-url?utm_source=hashnode&utm_medium=feed)

[Jul 15, 2022](https://hashnode.com/posts/cloudflare-r2-generating-presigned-url/62d0e48a857afbf07301bc85)

### [SSL with certbot on nginx/apache on Ubuntu Server](https://shrwn.com.np/ssl-with-certbot-on-nginxapache-on-ubuntu-server?utm_source=hashnode&utm_medium=feed)

First Thing first sudo add-apt-repository ppa:certbot/certbot sudo apt-get update On Nginx Server sudo apt-get install python3-certbot-nginx sudo certbot --nginx On Apache Server sudo apt-get install python3-certbot-apache sudo certbot --apache Note ...

1 min read · [shrwn.com.np](https://shrwn.com.np/ssl-with-certbot-on-nginxapache-on-ubuntu-server?utm_source=hashnode&utm_medium=feed)

[Apr 25, 2022](https://hashnode.com/posts/ssl-with-certbot-on-nginxapache-on-ubuntu-server/62668ac8d82f4558aff8ccac)

### [Fernet Encryption in Python](https://shrwn.com.np/fernet-encryption-in-python?utm_source=hashnode&utm_medium=feed)

We will be using python cryptography library install cryptography library using pip install cryptography from cryptography.fernet import Fernet KEY = "" # Fernet compatible key or; # you can generate key using Fernet.generate\_key() CIP...

1 min read · [shrwn.com.np](https://shrwn.com.np/fernet-encryption-in-python?utm_source=hashnode&utm_medium=feed)

[Mar 16, 2022](https://hashnode.com/posts/fernet-encryption-in-python/623237cffaf37c0675928278)
