Skip to content

Commit c1d92a9

Browse files
committed
add support for https
1 parent 302b87d commit c1d92a9

13 files changed

+763
-42
lines changed

CHANGELOG.md

+20
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,26 @@ but can also be used to read any file on the server.
4545
- [`sqlpage.read_file_as_text`](https://sql.ophir.dev/functions.sql?function=read_file#function) reads the contents of a file on the server and returns a text string.
4646
- [`sqlpage.read_file_as_data_url`](https://sql.ophir.dev/functions.sql?function=read_file#function) reads the contents of a file on the server and returns a [data URL](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs). This is useful to embed images directly in web pages, or make link
4747

48+
### HTTPS
49+
50+
This is the other big feature of this release: SQLPage now supports HTTPS !
51+
52+
And it does not do it like old-fashioned web servers,
53+
by requiring you to do a lot of manual configuration
54+
that will compromise your security if you get it wrong.
55+
56+
And while we're at it, SQLPage also supports HTTP/2, for even faster page loads.
57+
58+
To enable HTTPS, you need to buy a [domain name](https://en.wikipedia.org/wiki/Domain_name)
59+
and make it point to the server where SQLPage is running.
60+
Then set the `https_domain` configuration parameter to `yourdomain.com` in your [`sqlpage.json` configuration file](./configuration.md).
61+
62+
```json
63+
{
64+
"https_domain": "my-cool-website.com"
65+
}
66+
```
67+
4868
### Other news
4969

5070
- Dates and timestamps returned from the database are now always formatted in ISO 8601 format, which is the standard format for dates in JSON. This makes it easier to use dates in SQLPage.

0 commit comments

Comments
 (0)