I use Ubuntu’s Uncomplicated firewall because it is available on Ubuntu and it's very simple.
if ufw is not installed by default be sure to install it first.
import { | |
NestInterceptor, | |
ExecutionContext, | |
Injectable, | |
CallHandler, | |
} from '@nestjs/common'; | |
import { classToPlain } from 'class-transformer'; | |
import { map } from 'rxjs/operators'; | |
@Injectable() |
# OpenVPN Let's Encrypt first run config file | |
#https://loige.co/using-lets-encrypt-and-certbot-to-automate-the-creation-of-certificates-for-openvpn/ | |
cert-name= | |
authenticator = standalone | |
standalone-supported-challenges = tls-sni-01 | |
non-interactive = True | |
rsa-key-size = 4096 | |
email = "user@server.com" | |
domains = "vpn.server.com" |
'use strict'; | |
const crypto = require('crypto'); | |
const ENCRYPTION_KEY = process.env.ENCRYPTION_KEY; // Must be 256 bits (32 characters) | |
const IV_LENGTH = 16; // For AES, this is always 16 | |
function encrypt(text) { | |
let iv = crypto.randomBytes(IV_LENGTH); | |
let cipher = crypto.createCipheriv('aes-256-cbc', Buffer.from(ENCRYPTION_KEY), iv); |
This list was moved to https://letstalkaboutwebperf.com/en/gzip-brotli-server-config/ |