sysadmin_scripts/autonginx
2026-01-10 12:41:26 +01:00
..
autonginx v1.1 2026-01-10 12:41:26 +01:00
README.md v1.1 2026-01-10 12:41:26 +01:00

autonginx

wtf is it?

autonginx is a script that handles nginx config file creation and installation as well as installing a SSL certificate with certbot for a specific service.

This service must be hosted on a machine in the same subnetwork as the reverse proxy's whether it's the exact same machine or another.

Prerequisites

  • have the (sub)domain name you want to use point to the public IP of the reverse proxy
  • nginx
  • certbot

Usage

./autonginx <URL> <IP> <PORT>

URL: url à laquelle le service sera accessible (domain.tld ou sub.domain.tld)

IP: adresse ip locale du service

PORT: port utilisé par le service (entre 1 et 65535; certains ports peuvent être déjà utilisés)

The future

Ideas to improve this script:

  • handle IPv6
  • colored output
  • add options to enable/disable features