32 lines
839 B
Markdown
32 lines
839 B
Markdown
# 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
|
|
|
|
```sh
|
|
./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
|