Find Jobs
Hire Freelancers

Getting an error to run NPM with HTTPS?

₹600-1500 INR

Slutfört
Publicerad över tre år sedan

₹600-1500 INR

Betalning vid leverans
I have define options for SSL certificate but I don't how can I use it in code. so I am not getting proper result with HTTPS URL. Here is my code: 'use strict'; const express = require('express'); const https = require('https'), fs = require("fs"); const socketio = require('[login to view URL]'); const socketEvents = require('./utils/socket'); const options = { key: [login to view URL]("/www/wwwroot/[login to view URL]"), cert: [login to view URL]("/www/wwwroot/[login to view URL]") }; class Server { constructor() { [login to view URL] = [login to view URL] || 8099; [login to view URL] = [login to view URL] || '[login to view URL]'; [login to view URL] = express(); [login to view URL] = [login to view URL]([login to view URL]); [login to view URL] = socketio([login to view URL]); } appRun(){ new socketEvents([login to view URL]).socketConfig(); [login to view URL]([login to view URL](__dirname + '/uploads')); [login to view URL]([login to view URL], [login to view URL], () => { [login to view URL](`Listening on https://${[login to view URL]}:${[login to view URL]}`); }); } } const app = new Server(); [login to view URL]();
Project ID: 28978273

Om projektet

1 anbud
Distansprojekt
Senaste aktivitet tre år sedan

Ute efter att tjäna lite pengar?

Fördelar med att lägga anbud hos Freelancer

Ange budget och tidsram
Få betalt för ditt arbete
Beskriv ditt förslag
Det är gratis att registrera sig och att lägga anbud på uppdrag
Tilldelad till:
Använd avatar
In my earlier projects I did configured ssl on nodejs server. I'm having 4+ years of experience in web application development using MERN stack. looking forward to work. thanks!
₹1 500 INR Om 1 dag
5,0 (2 omdömen)
2,0
2,0

Om kunden

Flagga för INDIA
Surendranagar, India
5,0
5
Verifierad betalningsmetod
Medlem sedan apr. 8, 2016

Kundverifikation

Tack! Vi har skickat en länk för aktivering av gratis kredit.
Något gick fel med ditt e-postmeddelande. Vänligen försök igen.
Registrerade Användare Totalt antal jobb publicerade
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Laddar förhandsgranskning
Tillstånd beviljat för geolokalisering.
Din inloggningssession har löpt ut och du har blivit utloggad. Logga in igen.