-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbrowsersync.config.js
More file actions
29 lines (27 loc) · 834 Bytes
/
browsersync.config.js
File metadata and controls
29 lines (27 loc) · 834 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
const homedir = require('os').homedir();
/*
everything works fine, but https is not working and nothing I do seems to fix it
*/
module.exports = {
proxy: 'https://craft-starter.ddev.site',
host: '0.0.0.0',
files: [
'./templates/**/*.{html,twig}',
'./src/**/*.{css,js}',
'./public/**/*.{css,js}'
],
// https:true,
/*
? SSL-enabled for DDev. You have to copy the SSL cert to somewhere outside of Docker first. Run this at your project root:
docker cp ddev-router:/etc/nginx/certs ~/tmp/DOMAIN-WITH-EXTENSION
(From: https://stackoverflow.com/questions/59730898/cant-connect-browsersync-with-ddev-nginx-server-because-ssl-error):
*/
https: {
key: homedir + "/tmp/certs/master.key",
cert: homedir + "/tmp/certs/master.crt"
},
secure: true,
ui: false,
open: 'local',
notify: false,
};