Create file san.cnf
[ v3_req ]
subjectAltName = @alt_names
[ alt_names ]
DNS.1 = *.myserver.local
DNS.2 = myserver.local| from flask import Flask, send_from_directory, request | |
| app = Flask(__name__) | |
| @app.route('/<path:path>') | |
| def serve_file(path): | |
| if path.endswith(".gz"): | |
| response = send_from_directory('.', path) | |
| response.headers['Content-Encoding'] = 'gzip' | |
| return response |
We need NPM to run in network host so it can make use of 127.0.0.1 when setting new hosts, otherwise it will be considered NPM container itself, not the server.
services:
app:
container_name: nginxproxymanager
image: 'jc21/nginx-proxy-manager:latest'
restart: unless-stopped$EMSDK as environment var in your .profile/.zprofile/.bashrc/zshrc to make it easier laterinstall will run for a long timegit clone --depth=1 --recurse-submodules --shallow-submodules https://github.com/emscripten-core/emsdk.git
cd emsdk
export EMSDK=$(pwd) # save in you .profile or .bashrc/.zshrc
$EMSDK/emsdk install --shallow sdk-main-64bit # this takes a long timesudo apt update
sudo apt install python3 python3-venv libaugeas0
# remove if installed from package manager, use python version
# sudo apt-get remove certbot
sudo python3 -m venv /opt/certbot/
sudo /opt/certbot/bin/pip install --upgrade pip
sudo /opt/certbot/bin/pip install certbot certbot-nginx