Skip to content

A CLI tool that automatically exposes your local running service to the internet with NGINX and Certbot for SSL.

License

Notifications You must be signed in to change notification settings

ParamBirje/auto-sslx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AutoSSLx

A bash CLI tool to ease your nginx and SSL workflows by exposing your web service to the internet with a single command.

Compatibility

Currently working on

  • Amazon Linux 2023 (Fedora)

Usage

Requirements / Steps

  1. Have your service running locally on a port (using Docker or PM2). Do not use port 80 or 443.
  2. Configure your DNS (A record) to point to the machine's public IP address.
  3. Now run autosslx on the machine.

Args

  • <email> Your email address for the SSL certificate (required)
  • <domain> Your domain name for the SSL certificate (required)
  • <service_port> The port on which your service is running (required)

Easy execution (single command - default settings)

sudo bash -c "$(curl -sSL https://dub.sh/autosslx)" - <email> <domain> <service_port>

Just paste the command above directly into your machine's terminal, and before running, make sure you edit <email>, <domain> and <service_port>.

Customized execution

For a customized run, you can execute the following command in your machine which will get you a autosslx.sh script locally which you can edit to your needs.

curl -sSL https://dub.sh/autosslx -o autosslx.sh

Alternatively, you can fork this repo and make a script tailored for your usecases!

I have tried to document everything in the script, so it should be relatively easier to make it your own.

About

A CLI tool that automatically exposes your local running service to the internet with NGINX and Certbot for SSL.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages