Add stuff
This commit is contained in:
parent
62e3da8446
commit
fe854f0a0c
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,4 +1,6 @@
|
|||||||
node_modules/
|
node_modules/
|
||||||
proto/
|
proto/
|
||||||
!proto_src/proto/
|
!proto_src/proto/
|
||||||
.env
|
.env
|
||||||
|
dist/
|
||||||
|
server_wangan.key
|
19
server_wangan.crt
Normal file
19
server_wangan.crt
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
-----BEGIN CERTIFICATE-----
|
||||||
|
MIIDBDCCAm2gAwIBAgIUGsuA0SP7fcEsS1NZcFpOk0YrPzgwDQYJKoZIhvcNAQEF
|
||||||
|
BQAwgZIxCzAJBgNVBAYTAkpQMQ4wDAYDVQQIDAVUb2t5bzEgMB4GA1UECgwXTkFN
|
||||||
|
Q08gQkFOREFJIEdhbWVzIEluYy4xIjAgBgNVBAsMGU5ldHdvcmsgU2VydmVyIERl
|
||||||
|
cGFydG1lbnQxLTArBgNVBAMMJE5BTUNPIEJBTkRBSSBHYW1lcyBJbmMgLSBOU0Qg
|
||||||
|
Q0EgUm9vdDAgFw0yMTA3MTgxODU5MTBaGA8zMDAxMDkxOTE4NTkxMFowgZIxCzAJ
|
||||||
|
BgNVBAYTAkpQMQ4wDAYDVQQIDAVUb2t5bzEgMB4GA1UECgwXTkFNQ08gQkFOREFJ
|
||||||
|
IEdhbWVzIEluYy4xIjAgBgNVBAsMGU5ldHdvcmsgU2VydmVyIERlcGFydG1lbnQx
|
||||||
|
LTArBgNVBAMMJE5BTUNPIEJBTkRBSSBHYW1lcyBJbmMgLSBOU0QgQ0EgUm9vdDCB
|
||||||
|
nzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA3GTOA/J1biAnqlyp36CUwU5Bcdcq
|
||||||
|
97MaTw7hMUfTqXW3253iqHK3PrhXxExz9J7npy+146v1u8L3NpfAHDX7EWlLHQXW
|
||||||
|
kNoI7JkVVYs25fqXLAKyIJJOBHRCfFO8PFy52QSLZSpzUchXKausyyEk2Dxp/xai
|
||||||
|
eIdihPv7IUPnpd0CAwEAAaNTMFEwHQYDVR0OBBYEFEw7gK2L4H/y1RJg52d3fdpb
|
||||||
|
xlqJMB8GA1UdIwQYMBaAFEw7gK2L4H/y1RJg52d3fdpbxlqJMA8GA1UdEwQIMAYB
|
||||||
|
Af8CAQAwDQYJKoZIhvcNAQEFBQADgYEAXFLspRGg+SKsoD3rHLhG21/t1ddkkNpT
|
||||||
|
xVM1fKa3jEE5zbmmJtgNQG3hYAwi/qnwWr49UmAWIhZzCCDQS/b0e12lZ+ne32wK
|
||||||
|
NE+s5l1SqRAQF6NhuO5M7mQ2JG8inHnN4YwprftEogvR/izeak5MMzCw64DfDCyA
|
||||||
|
mrJoqwuqit4=
|
||||||
|
-----END CERTIFICATE-----
|
13
src/index.ts
13
src/index.ts
@ -1,5 +1,16 @@
|
|||||||
// Bayshore - a Wangan Midnight Maximum Tune 6 private server.
|
// Bayshore - a Wangan Midnight Maximum Tune 6 private server.
|
||||||
// Made with love by Luna, and part of Project Asakura.
|
// Made with love by Luna, and part of Project Asakura.
|
||||||
|
|
||||||
import {Express} from 'express';
|
import express from 'express';
|
||||||
import {PrismaClient} from '@prisma/client';
|
import {PrismaClient} from '@prisma/client';
|
||||||
|
import https from 'https';
|
||||||
|
import fs from 'fs';
|
||||||
|
|
||||||
|
const app = express();
|
||||||
|
|
||||||
|
https.createServer({
|
||||||
|
key: fs.readFileSync('server_wangan.key'),
|
||||||
|
cert: fs.readFileSync('server_wangan.crt')
|
||||||
|
}, app).listen(9002, () => {
|
||||||
|
console.log('Server listening on port 9002!');
|
||||||
|
})
|
Loading…
Reference in New Issue
Block a user