Skip to content

TLS Support for automatic HTTPS #9

@WilliamRagstad

Description

@WilliamRagstad

A setting in webx.config.json to configure Transport Layer Security using a given server certificate and enable Web X to serve over HTTPS. All clients connection over HTTP will be upgraded to HTTPS automatically.

{
  "name": "My todo WebX Project",
  "version": "1.0.0",
  "description": "An example WebX project.",

  "tls": {
		"cert": "path/to/cert.pem",
		"key": "path/to/key.pem"
  },
}
  • cert: Path to the public key certificate file (if null, a self-signed cert will be generated)
-----BEGIN CERTIFICATE-----
MII...
-----END CERTIFICATE-----
  • key: Path to the private key file (if null, a self-signed key will be generated)
-----BEGIN PRIVATE KEY-----
MII...
-----END PRIVATE KEY-----

These files can be located in /etc/letsencrypt/live/example.com if generated with:

sudo certbot certonly --standalone --preferred-challenges http -d example.com

This will result in Web X running with the support for secure TLS connections.

+--- WebX -------------------
| Project: My todo WebX Project
| Mode: development
| TLS: enabled
...
+----------------------------

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions