1
0
mirror of synced 2024-11-12 01:10:47 +01:00

Add stuff

This commit is contained in:
Rin 2022-07-11 08:38:33 +01:00
parent 62e3da8446
commit fe854f0a0c
3 changed files with 34 additions and 2 deletions

4
.gitignore vendored
View File

@ -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
View 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-----

View File

@ -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!');
})