Nginx catch-all config for http:// and https://
Working on mission to provide, Software Engineering Trainings easily and freely accessible to everyone through EdTech
Search for a command to run...
Working on mission to provide, Software Engineering Trainings easily and freely accessible to everyone through EdTech
No comments yet. Be the first to comment.
WebAssembly (wasm) Designed as a portable compilation target for programming languages Loading…

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_...
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 ...
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...
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_cert.pem -days 3650
server {
listen 443 default_server ssl;
ssl_certificate /path-to/self_cert.pem;
ssl_certificate_key /path-/self_key.pem;
return 404;
}