https://github.com/timbroddin/cassim
Cassim is an easy CLI tool to create nginx vhosts pointing to a certain port.
https://github.com/timbroddin/cassim
Last synced: 10 months ago
JSON representation
Cassim is an easy CLI tool to create nginx vhosts pointing to a certain port.
- Host: GitHub
- URL: https://github.com/timbroddin/cassim
- Owner: TimBroddin
- Created: 2020-05-11T15:20:59.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-12T12:02:48.000Z (about 6 years ago)
- Last Synced: 2025-09-12T04:01:02.680Z (10 months ago)
- Language: JavaScript
- Homepage:
- Size: 43 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cassim
Cassim is an easy CLI tool to create nginx vhosts pointing to a certain port.
I created this package to quickly open up ports while developing on a remote server on the go. For example, when I'm working on a `create-react-app` project, I can quickly debug it by typing `cassim add 3000` which will create a subdomain at `3000.mydomain.com`.
Cassim is also Ali Baba's brother. He couldn't open shit and was murdered by the thieves.
# Usage
This package is still very crude and I've only tested it on my own Ubuntu server. You'll need a configured server with nginx running and you'll also need `certbot` if you need SSL.
Install cassim globally by running: `npm i -g cassim` or just invoke it with `npx cassim`
# Setup
The first time you run cassim you'll be asked some questions about where your nginx configuration files are, and which domain you want to use. To be able to resolve the domain you'll configure your DNS-server with a wildcard domain pointing to your server's IP-address. For mydomain.com this would be: \*.mydomain.com.
# Running
If everything is configured properly, you should be able to run `cassim add 3000` and a vhost will be created. If you've enabled SSL and installed `certbot` will be invoked, configuring SSL.
# Sudo
Cassim uses `sudo` to execute commands. Be sure to add your user to the sudoers file.
# Todo
- [X] Implement `cassim remove`
- [ ] Password protection
- [ ] Better error handling