0.2.15 • Published 2 years ago

wulfy-http-core v0.2.15

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Wulfy Http-Core

Usage

import HttpCore from "wulfy-http-core";

class MyCore extends HttpCore {
	protected configure() {
		return {
			// ...
		}
	}
}

new MyCore().start()

Add the following environment variables in .env file

# Port for HTTP server. Default = 80
PORT=80

##### SEC #####
# Path to public key for HTTPS server. 
## If omitted, the HTTPS server will not be created.
## If the specified file is not found, the server will not be created.
SEC_KEY="path/to/public.key" 

# Path to certificate for HTTPS server.
## If omitted, the HTTPS server will not be created.
## If the specified file is not found, the server will not be created.
SEC_CERT="path/to/public.cert" 


# Port for HTTPS server. Default = 443
SEC_PORT=443 

# Set true, if you want redirect to HTTPS
SEC_REDIERCT=true
# HTTP-Code for redirect to HTTPS. Default - 308 
SEC_REDIERCT_CODE=308
# Set domain for redirect, if user not send host in headers
HOST="localhost"
0.2.15

2 years ago

0.2.14

3 years ago

0.2.13

3 years ago

0.2.12

3 years ago

0.2.11

3 years ago

0.2.10

3 years ago

0.2.9

3 years ago

0.2.8

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.2

4 years ago

0.1.1

4 years ago