Find Jobs
Hire Freelancers

Getting an error to run NPM with HTTPS?

₹600-1500 INR

Completed
Posted over 3 years ago

₹600-1500 INR

Paid on delivery
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

About the project

1 proposal
Remote project
Active 3 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User 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 in 1 day
5.0 (2 reviews)
2.0
2.0

About the client

Flag of INDIA
Surendranagar, India
5.0
5
Payment method verified
Member since Apr 8, 2016

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.