UNPKG

nsfw-api

Version:
30 lines (24 loc) 772 B
import {ServerProxy} from "nsfw-proxy"; export default class DefaultProxyServer{ static DEFAULT_CONFIG = { "ssl": { "privkeyPath" : "/etc/letsencrypt/live/yourdomain.de/privkey.pem", "certPath": "/etc/letsencrypt/live/yourdomain.de/cert.pem" }, "uploads": { "maxBodyUploadSizeInMb": 50 }, "server": { "api_server_domain": "localhost:3001", "server_api_metrics": "localhost:9999/metrics/metrics", "server_frontend_domain": "localhost:3000" } } static start(config=null){ if(!config){ config = DefaultProxyServer.DEFAULT_CONFIG; } let server = new ServerProxy(config); server.start(); } }