This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| upstream mailcow { | |
| server 192.168.3.3:8080; | |
| keepalive 32; | |
| } | |
| server { | |
| listen 443 ssl http2; | |
| listen [::]:443 ssl http2; | |
| server_name mail.example.com autodiscover.example.com autoconfig.example.com; | |
| ssl_certificate /etc/letsencrypt/live/mail.example.com/fullchain.pem; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import json | |
| import subprocess | |
| import re | |
| import sys | |
| import shutil | |
| import ctypes | |
| import urllib.request | |
| import urllib.error |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| if [[ $(/usr/bin/id -u) -ne 0 ]]; then | |
| echo "Not running as root" | |
| exit | |
| fi | |
| INITIAL_PWD=$(pwd) | |
| ## Сonfigure openssh-server | |
| echo -e "\n\e[32mRunning configure openssh-server...\e[0m" |