-
Notifications
You must be signed in to change notification settings - Fork 0
/
create-protonmail-bridge-system.yml
33 lines (33 loc) · 1.48 KB
/
create-protonmail-bridge-system.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#cloud-config
#
# Copyright (c) 2023 Matt Smith
# MIT License
#
# Cloud ........... : Hetzner Cloud (though this may work with your cloud without any changes)
# Instance Type ... : Shared vCPU, CPX11 (2 vCPU, 2GB RAM)
# OS .............. : Ubuntu 22.04
#
# Description ..... :
# This installs Proton Mail Bridge and exposes it on the network with
# an SSL certificate from Let's Encrypt.
#
# Please specify your new Proton Mail Bridge's hostname below, and the email address
# to use with the Let's Encrypt SSL certificate registration.
#
runcmd:
- sleep 6
- echo "\n\n\nBeginning installation and configuration of Proton Mail Bridge.\n\n" >/dev/tty1
- sleep 2
- apt-get update >/dev/null 2>&1
- apt-get install -y curl ufw >/dev/null 2>&1
- ufw allow ssh >/dev/null 2>&1
- ufw allow http >/dev/null 2>&1
- ufw allow 993 >/dev/null 2>&1
- ufw allow 587 >/dev/null 2>&1
- ufw enable >/dev/null 2>&1
- apt-get upgrade -y >/dev/null 2>&1
- echo "#!/bin/bash\n/root/create-protonmail-bridge-system.sh 'proton-bridge.your-domain.com' 'you@your-domain.com'" >/root/create-protonmail-bridge-system-with-args.sh
- chmod 700 /root/create-protonmail-bridge-system-with-args.sh
- curl -Ls https://raw.githubusercontent.com/mattx86/protonmail-bridge-cloud-config/main/create-protonmail-bridge-system.sh -o /root/create-protonmail-bridge-system.sh
- chmod 700 /root/create-protonmail-bridge-system.sh
- su -P -s /bin/bash -c /root/create-protonmail-bridge-system-with-args.sh - root >/dev/tty1 2>&1