Skip to content

Instantly share code, notes, and snippets.

View xAt0mZ's full-sized avatar
🐋
Making Docker & Kubernetes awesome #Portainer

LP B xAt0mZ

🐋
Making Docker & Kubernetes awesome #Portainer
View GitHub Profile
@philenius
philenius / index.html
Last active March 29, 2023 10:37
Usage of Passport JWT Strategy for Authentication in Socket.IO
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Socket.IO with JWT Authentication</title>
</head>
<body>
<h1>Socket.IO with JWT Authentication</h1>
<textarea style="width: 300px; height: 300px"></textarea>
<br>
@saniaky
saniaky / Readme.md
Last active October 30, 2024 15:30
Docker + nginx-proxy + let's encrypt + watchtower + fail2ban

Complete solution for websites hosting

This gist contains example of how you can configure nginx reverse-proxy with autmatic container discovery, SSL certificates generation (using Let's Encrypt) and auto updates.

Features:

  • Automatically detect new containers and reconfigure nginx reverse-proxy
  • Automatically generate/update SSL certificates for all specified containers.
  • Watch for new docker images and update them.
  • Ban bots and hackers who are trying to bruteforce your website or do anything suspicious.
@saniaky
saniaky / custom_proxy_settings.conf
Last active August 15, 2023 09:05
Docker + Wordpress + Nginx Proxy + Let's encrypt + Watcher
client_max_body_size 64m;