snipplets.dev/snipplets/projects/PWA
2023-09-03 11:39:13 +03:00
..
images draft PWA 2023-08-16 16:02:20 +03:00
.gitignore draft PWA 2023-08-16 16:02:20 +03:00
.prettierignore draft PWA 2023-08-16 16:02:20 +03:00
.prettierrc.json draft PWA 2023-08-16 16:02:20 +03:00
app.js update PWA 2023-09-03 11:39:13 +03:00
favicon.ico update PWA 2023-09-03 11:39:13 +03:00
fonts.css update PWA 2023-09-03 11:39:13 +03:00
index.html update PWA 2023-09-03 11:39:13 +03:00
manifest.json update PWA 2023-09-03 11:39:13 +03:00
README.md draft PWA 2023-08-16 16:02:20 +03:00
server.py draft PWA 2023-08-16 16:02:20 +03:00
styles.css update PWA 2023-09-03 11:39:13 +03:00
sw.js update PWA 2023-09-03 11:39:13 +03:00

Создать свой SSL сервификат

openssl req -x509 -out server.crt -keyout server.key \
-newkey rsa:2048 -nodes -sha256 \
-subj '/CN=localhost' -extensions EXT -config <( \
printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth")

Флаги chrome для запуска с самописным сертификатом

chrome --ignore-certificate-errors --unsafely-treat-insecure-origin-as-secure=https://localhost:1443