Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Site.js
lib
HTTPS
Commits
75db0bbe
Commit
75db0bbe
authored
Mar 08, 2021
by
Aral Balkan
Browse files
Revert code examples in readme to CommonJS format for time being
parent
20af9b03
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
75db0bbe
...
...
@@ -39,7 +39,7 @@ npm i @small-tech/https
### At localhost with automatically-provisioned development certificates via mkcert.
```
js
impor
t
https
from
'
@small-tech/https
'
cons
t
https
=
require
(
'
@small-tech/https
'
)
const
server
=
https
.
createServer
((
request
,
response
)
=>
{
response
.
end
(
'
Hello, world!
'
)
...
...
@@ -55,8 +55,8 @@ Hit `https://localhost` and you should see your site with locally-trusted TLS ce
### At hostname with automatically-provisioned Let’s Encrypt certificates.
```
js
impor
t
https
from
'
@small-tech/https
'
import
os
form
'
os
'
cons
t
https
=
require
(
'
@small-tech/https
'
)
const
os
=
require
(
'
os
'
)
const
hostname
=
os
.
hostname
()
const
options
=
{
domains
:
[
hostname
]
}
...
...
Aral Balkan
@aral
mentioned in commit
37bde40a
·
Mar 09, 2021
mentioned in commit
37bde40a
mentioned in commit 37bde40a7523c288f1f7e1637b52e7dcbaa0e40f
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment