add ssl privatekey/certificate to config
This commit is contained in:
		
							parent
							
								
									1e64231556
								
							
						
					
					
						commit
						03a5803786
					
				@ -901,8 +901,8 @@ app.use(router)
 | 
			
		||||
const httpServer = http.createServer(app);
 | 
			
		||||
httpServer.listen(25567);
 | 
			
		||||
 | 
			
		||||
const privateKey = fs.readFileSync("C:/Certbot/live/ws.zerotwohub.tk/privkey.pem").toString()
 | 
			
		||||
const certificate = fs.readFileSync("C:/Certbot/live/ws.zerotwohub.tk/cert.pem").toString()
 | 
			
		||||
const privateKey = fs.readFileSync(config["ssl"]["privateKey"]).toString()
 | 
			
		||||
const certificate = fs.readFileSync(config["ssl"]["certificate"]).toString()
 | 
			
		||||
 | 
			
		||||
const credentials = {key: privateKey, cert: certificate};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -24,5 +24,9 @@
 | 
			
		||||
  "logs": {
 | 
			
		||||
    "level": 5
 | 
			
		||||
  },
 | 
			
		||||
  "ssl": {
 | 
			
		||||
    "privateKey": "/etc/letsencrypt/live/ipost.tk/privkey.pem",
 | 
			
		||||
    "certificate" : "/etc/letsencrypt/live/ipost.tk/cert.pem"
 | 
			
		||||
  },
 | 
			
		||||
  "disallow_proxies_by_headers": true
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -15,11 +15,11 @@
 | 
			
		||||
        <h1 id="userName">USER</h1>
 | 
			
		||||
    </header>
 | 
			
		||||
    <main>
 | 
			
		||||
        <div class="info_div">
 | 
			
		||||
          <img id="avatar" width=100 height=100> <br>
 | 
			
		||||
          <h4 id="userBio">Bio: </h4>
 | 
			
		||||
          <button id="mentionClick" onclick="mention()">Mention this User in Posts!</button>
 | 
			
		||||
        </div>
 | 
			
		||||
      <div class="info_div">
 | 
			
		||||
        <img id="avatar" width=100 height=100> <br>
 | 
			
		||||
        <h4 id="userBio">Bio: </h4>
 | 
			
		||||
        <button id="mentionClick" onclick="mention()">Mention this User in Posts!</button>
 | 
			
		||||
      </div>
 | 
			
		||||
    </main>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user