Skip to content

Simple https proxy server package for meteor using npm http-proxy

License

Notifications You must be signed in to change notification settings

ADAIN/meteor-https

Repository files navigation

Meteor https proxy server package

Table of Contents

Usage

1. Add package

meteor add adain:meteor-https

2. You have to make your ssl certificate and key file. If you already have these, you can skip this step.

openssl genrsa -out server.key 2048
openssl req -new -sha256 -key server.key -out csr.pem
openssl x509 -req -in csr.pem -signkey server.key -out cert.pem

3. Set environment variables.

export USE_HTTPS=1
export SSL_KEY_PATH=server.key
export SSL_CERT_PATH=cert.pem
export SSL_PORT=8443
export SSL_TARGET_IP=127.0.0.1
export SSL_TARGET_PORT=3000
export FORCE_SSL=1

4. Run meteor with environment variables.

meteor run -p 3000

If you want to use 443 port, you have to run with sudo or run with root permission.

sudo meteor run -p 3000

5. Access to https URL use your browser.

https://localhost:8443

Environment variables description

USE_HTTPS : 1 = USE, 0 = NOT USE
SSL_KEY_PATH : SSL Key file path (default server.key)
SSL_KEY_PASS : SSL Key file password (optional)
SSL_CERT_PATH : SSL Certificate file path (default cert.pem)
SSL_CA_PATH : ca file password (optional)
SSL_PORT : SSL Port (default 8443)
SSL_TARGET_IP : Meteor server ip address or host (default 127.0.0.1)
SSL_TARGET_PORT : Meteor server port (default 3000)
NEVER_DIE : (OPTIONAL) 1 = USE, 0 = NOT USE (If this is variable set to 1 the meteor process never die.)
FORCE_SSL : If client request from http, redirect to https (http://localhost:3000 => https://localhost:8443)

About

Simple https proxy server package for meteor using npm http-proxy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages