Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Alfakhori
M4labplatform
Commits
80241bd6
Commit
80241bd6
authored
Feb 01, 2021
by
Patrick
Browse files
add codepoly.js
parent
a684dadd
Changes
1
Show whitespace changes
Inline
Side-by-side
server.js
View file @
80241bd6
...
@@ -11,6 +11,7 @@ const axios = require('axios');
...
@@ -11,6 +11,7 @@ const axios = require('axios');
const
app
=
express
();
const
app
=
express
();
app
.
use
(
bodyParser
.
urlencoded
({
extended
:
false
}))
app
.
use
(
bodyParser
.
urlencoded
({
extended
:
false
}))
app
.
use
(
bodyParser
.
json
())
app
.
use
(
bodyParser
.
json
())
const
polycalc
=
require
(
'
./codepoly.js
'
);
// Certificate
// Certificate
const
privateKey
=
fs
.
readFileSync
(
'
/etc/letsencrypt/live/umfrage.smartvillages.online/privkey.pem
'
,
'
utf8
'
);
const
privateKey
=
fs
.
readFileSync
(
'
/etc/letsencrypt/live/umfrage.smartvillages.online/privkey.pem
'
,
'
utf8
'
);
const
certificate
=
fs
.
readFileSync
(
'
/etc/letsencrypt/live/umfrage.smartvillages.online/cert.pem
'
,
'
utf8
'
);
const
certificate
=
fs
.
readFileSync
(
'
/etc/letsencrypt/live/umfrage.smartvillages.online/cert.pem
'
,
'
utf8
'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment