An open API service indexing awesome lists of open source software.

https://github.com/peter-szrnka/mini-http-server

Java based HTTP/HTTPS web server for local Javascript web development.
https://github.com/peter-szrnka/mini-http-server

angularjs https-server java javascript pwa-apps

Last synced: 6 months ago
JSON representation

Java based HTTP/HTTPS web server for local Javascript web development.

Awesome Lists containing this project

README

          

# mini-http-server

A small, Java based HTTP/HTTPS web server. ( First I created it for myself. :) ) It's very useful for local Javascript (Angular JS, Progressive Web Apps, etc.) web development.

| Build | Code coverage | Code quality |
| ----- | ------------- | ------------ |
| [![CodeQL](https://github.com/peter-szrnka/mini-http-server/actions/workflows/codeql.yml/badge.svg)](https://github.com/szrnka-peter/mini-http-server/actions/workflows/codeql.yml) |![Code coverage](https://sonarcloud.io/api/project_badges/measure?project=peter-szrnka_mini-http-server&metric=coverage) | [![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=peter-szrnka_mini-http-server&metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=peter-szrnka_mini-http-server) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=peter-szrnka_mini-http-server&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=peter-szrnka_mini-http-server) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=peter-szrnka_mini-http-server&metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=peter-szrnka_mini-http-server) |

## Used technologies
- Java 8
- Maven
- Jetty webserver

## Features
- configurable
- small
- portable (no installation required)

## Install & configuration
- Download the JAR file
- Create a keystore file (for HTTPS mode)
- Create a batch file to run it, or you can download it from here.
- Download the sample config.properties file
- Open the config.properties file and customize the parameters.

## Generate new keystore(with Java)

TODO

## Usage
- Start the batch file or run it from command line with
```
java -jar mini-https-server.jar
```

## Settings

| Key | Description |
| ------------- | ------------- |
| server.type |[HTTP,HTTPS] |
| server.port | The port type, where the server'll run |
| www.dir | WWW directory |
| keystore.location | Keystore file location |
| keystore.password | Base64 encoded keystore password |
| truststore.location | Truststore file location (same as keystore file) |
| truststore.password | Base64 encoded truststore password |
| password.encrypttype | Encryption type (currently only base64 allowed) |