https://github.com/kurotch321/https-to-http
Redirect https to http
https://github.com/kurotch321/https-to-http
Last synced: about 2 months ago
JSON representation
Redirect https to http
- Host: GitHub
- URL: https://github.com/kurotch321/https-to-http
- Owner: kurotch321
- License: mit
- Created: 2023-09-14T03:42:05.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-06T17:26:04.000Z (6 months ago)
- Last Synced: 2025-01-21T18:17:44.166Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 67.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# https-to-http
## What is this?
This is a simple server that simply redirects https to http.
For example: Accessing https://server.example.com/index.html will redirect to http://server.example.com/index.html.## How to use
### Step 1: Clone this repository
```bash
git clone https://github.com/nekodayo2222/https-to-http.git
cd https-to-http
```### Step 2: Place your certificate files
Place your certificate files and private key files in the same directory as `server.js`.
### Step 3: Edit `config.json`
Edit `config.json` to your settings.
```json
{
"port": 443,
"cert": "example.crt",
"key": "example.key"
}
```### Step 4: Install dependencies
```bash
npm install --production
```### Step 5: Run
```bash
npm start
```