Skip to content

betaWeb/apache2-virtualhost-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Feb 20, 2018
1c8f9b7 · Feb 20, 2018

History

14 Commits
Feb 19, 2018
Feb 14, 2018
Feb 14, 2018
Feb 20, 2018
Feb 20, 2018
Feb 14, 2018
Feb 14, 2018
Feb 20, 2018
Feb 14, 2018
Feb 14, 2018
Feb 13, 2018
Feb 20, 2018
Feb 19, 2018
Feb 19, 2018
Feb 19, 2018
Feb 20, 2018

Repository files navigation

apache2-virtualhost-generator

Apache2 virtualhost config file (on sites-available folder) generator build with NodeJS.

Editer une configuration

Installation

Run the following command to build the project:

npm run build

Then, check that you have su permissions. If not, add this line on /etc/sudoers (replace <username> by your current username) :

<username> ALL=(ALL) NOPASSWD: ALL

Run application

To run application, just run the following command :

# via NPM
npm run serve:prod

# Via NodeJS
node server.js

The server starts by default on port 3000. To launch app with other port, or define other environment variables, you can edit .env file.

APP_ENV="production"
API_ONLY=false

API_PROTOCOL="http"
API_HOST="localhost"
API_PORT=8905
API_URL=

APP_PROTOCOL=http
APP_PORT=3000

CONF_PATH="/etc/apache2/"
CONF_EXTENSION=".conf"
CONF_AVAILABLES="sites-available/"
CONF_ENABLED="sites-enabled/"

If you only want to launch the API, you can set API_ONLY env variable value at true. It allows you to access the app via an HTTP server like Apache2, Nginx etc (the entry point is build/index.html).

About

Apache2 virtualhost config file (on sites-available folder) generator build with NodeJS.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published