Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TLS Support for automatic HTTPS #9

Open
WilliamRagstad opened this issue Sep 11, 2024 · 0 comments
Open

TLS Support for automatic HTTPS #9

WilliamRagstad opened this issue Sep 11, 2024 · 0 comments
Labels
feature 🔨 A new feature

Comments

@WilliamRagstad
Copy link
Member

WilliamRagstad commented Sep 11, 2024

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
...
+----------------------------
@WilliamRagstad WilliamRagstad added enhancement 🎨 Improvements or minor features feature 🔨 A new feature and removed enhancement 🎨 Improvements or minor features labels Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 🔨 A new feature
Projects
None yet
Development

No branches or pull requests

1 participant