https://github.com/gatecloud/router-config
A tool for routing file configuration
https://github.com/gatecloud/router-config
Last synced: 2 months ago
JSON representation
A tool for routing file configuration
- Host: GitHub
- URL: https://github.com/gatecloud/router-config
- Owner: gatecloud
- License: mit
- Created: 2018-07-11T01:17:24.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-09-11T03:05:25.000Z (almost 7 years ago)
- Last Synced: 2025-01-18T01:25:24.583Z (over 1 year ago)
- Language: JavaScript
- Size: 583 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# router-config
A tool for routing file configuration
## Usage
### On-premise
Make sure that you have Chrome in your computer before running the `router-config.bat` file
## How to deploy into a cloud docker manually
1. Compile the program in the local virtual machine within golang environment.
You can use the command `CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o .` to specify the executable file's name
2. Create a project folder in the target EC2.For example `/ubuntu/roconfig`
3. Copy the executable file (e.g. `roconfig`), docker-compose file, Dockerfile and other javascript or css files into the folder which is created in the step 2
4. Modify the permission of the folder and the file. The commands are
```
sudo chown -R ubuntu:ubuntu roconfig
sudo chmod 400 roconfig
```
5. Build docker image by the command `docker build -t image-roconfig:latest .`
6. Run the docker image. `sudo docker-compose up -d`
## Other configuration
In order to run the program smoothly after deployment, we need to update the URL in `/public/xx.js` files
### PostgreSQL configuration
1. Install postgreSQL into the target server
2. Go to `cd /etc/postgresql/10/main/pg_hba.conf` to configure the allowed IPv4 address
3. Go to `cd /etc/postgresql/10/main/postgresql.conf` to open all listening port