JSPM

  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q71884F
  • License MIT

Simple hastebin-like server with HTTPS

Package Exports

  • dev-_007haste-server
  • dev-_007haste-server/server.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (dev-_007haste-server) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

haste-server 🔐💻💻💻

☕️☕️☕️ https://donatello.to/dev_aa007

pwd = cert
openssl genrsa -out key.pem 2048
openssl req -new -x509 -key key.pem -out cert.pem -days 365

haste-server' haste-server'

npm npm downloads Open Source Love

haste-server — это простой сервер для работы с файлами и данными через HTTPS. Он позволяет легко настроить сервер с поддержкой SSL для безопасной передачи данных. 🔒

change log

...

Installation

🚀 Установка

Чтобы установить haste-server, выполните команду:

npm install dev-_007haste-server

⚡ Запуск

После установки, вы можете запустить сервер с помощью команды:

node node_modules/dev-_007haste-server/server.js

Options

Option Default
start_haste-server "node node_modules/dev-_007haste-server/server.js"

🔒 Настройка HTTPS

Чтобы настроить сервер с HTTPS, откройте файл server.js и замените строку:

https.createServer(sslOptions, app).listen(PORT, () => { console.log(HTTPS сервер запущен на https://127.0.0.1:${PORT}); });

на:

https.createServer(sslOptions, app).listen(PORT, () => { console.log(HTTPS сервер запущен на https://ip.addr:${PORT}); });

Не забудьте заменить ip.addr на ваш реальный IP-адрес. (local IP address) 🌐

....