From 947e088aeb9c0f01290cfe179fbda47095a7d4da Mon Sep 17 00:00:00 2001 From: schlagmichdoch Date: Fri, 23 Dec 2022 05:04:52 +0100 Subject: [PATCH] move files for node only implementation --- docker-compose.yml | 25 ++++++++++++++++++ server/index.js => index.js | 0 server/package.json => package.json | 2 ++ .../android-chrome-192x192-maskable.png | Bin .../images/android-chrome-192x192.png | Bin .../android-chrome-512x512-maskable.png | Bin .../images/android-chrome-512x512.png | Bin .../images/apple-touch-icon.png | Bin {client => public}/images/favicon-96x96.png | Bin .../images/logo_blue_512x512.png | Bin .../images/logo_transparent_128x128.png | Bin .../images/logo_transparent_512x512.png | Bin .../images/logo_transparent_white_512x512.png | Bin .../images/logo_white_512x512.png | Bin {client => public}/images/mstile-150x150.png | Bin .../images/safari-pinned-tab.svg | 0 .../images/snapdrop-graphics.sketch | Bin {client => public}/images/twitter-stream.jpg | Bin {client => public}/index.html | 0 {client => public}/manifest.json | 0 {client => public}/scripts/clipboard.js | 0 {client => public}/scripts/network.js | 0 {client => public}/scripts/theme.js | 0 {client => public}/scripts/ui.js | 0 {client => public}/service-worker.js | 0 {client => public}/sounds/blop.mp3 | Bin {client => public}/sounds/blop.ogg | Bin {client => public}/styles.css | 0 28 files changed, 27 insertions(+) rename server/index.js => index.js (100%) rename server/package.json => package.json (83%) rename {client => public}/images/android-chrome-192x192-maskable.png (100%) rename {client => public}/images/android-chrome-192x192.png (100%) rename {client => public}/images/android-chrome-512x512-maskable.png (100%) rename {client => public}/images/android-chrome-512x512.png (100%) rename {client => public}/images/apple-touch-icon.png (100%) rename {client => public}/images/favicon-96x96.png (100%) rename {client => public}/images/logo_blue_512x512.png (100%) rename {client => public}/images/logo_transparent_128x128.png (100%) rename {client => public}/images/logo_transparent_512x512.png (100%) rename {client => public}/images/logo_transparent_white_512x512.png (100%) rename {client => public}/images/logo_white_512x512.png (100%) rename {client => public}/images/mstile-150x150.png (100%) rename {client => public}/images/safari-pinned-tab.svg (100%) rename {client => public}/images/snapdrop-graphics.sketch (100%) rename {client => public}/images/twitter-stream.jpg (100%) rename {client => public}/index.html (100%) rename {client => public}/manifest.json (100%) rename {client => public}/scripts/clipboard.js (100%) rename {client => public}/scripts/network.js (100%) rename {client => public}/scripts/theme.js (100%) rename {client => public}/scripts/ui.js (100%) rename {client => public}/service-worker.js (100%) rename {client => public}/sounds/blop.mp3 (100%) rename {client => public}/sounds/blop.ogg (100%) rename {client => public}/styles.css (100%) diff --git a/docker-compose.yml b/docker-compose.yml index 02e5bdb..78810a0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -25,3 +25,28 @@ services: entrypoint: /mnt/openssl/create.sh command: ["nginx", "-g", "daemon off;"] restart: unless-stopped + coturn: + image: coturn/coturn:alpine + container_name: coturn_server + network_mode: host + restart: unless-stopped + command: + - "--log-file=stdout" + - "--external-ip=$$(detect-external-ip)" + # - "--no-auth" + - "--no-tcp" + - "--no-tls" + - "--no-dtls" + - "--no-cli" + # - "--stun-only" + - "--listening-ip=0.0.0.0" + - "--listening-port=3478" + - "--tls-listening-port=5349" + - "--min-port=49152" + - "--max-port=65535" + - "--fingerprint" + - "--realm=127.0.0.1" + - "-a" + - "--user=snapdrop:ifupvrwelijmoyjxmefcsvfxxmcphvxo" + - "--lt-cred-mech" +# - "--static-auth-secret=ifupvrwelijmoyjxmefcsvfxxmcphvxo" diff --git a/server/index.js b/index.js similarity index 100% rename from server/index.js rename to index.js diff --git a/server/package.json b/package.json similarity index 83% rename from server/package.json rename to package.json index 94ec33e..9956b6a 100644 --- a/server/package.json +++ b/package.json @@ -9,6 +9,8 @@ "author": "", "license": "ISC", "dependencies": { + "express": "^4.18.2", + "express-rate-limit": "^6.7.0", "ua-parser-js": "^0.7.24", "unique-names-generator": "^4.3.0", "ws": "^7.4.6" diff --git a/client/images/android-chrome-192x192-maskable.png b/public/images/android-chrome-192x192-maskable.png similarity index 100% rename from client/images/android-chrome-192x192-maskable.png rename to public/images/android-chrome-192x192-maskable.png diff --git a/client/images/android-chrome-192x192.png b/public/images/android-chrome-192x192.png similarity index 100% rename from client/images/android-chrome-192x192.png rename to public/images/android-chrome-192x192.png diff --git a/client/images/android-chrome-512x512-maskable.png b/public/images/android-chrome-512x512-maskable.png similarity index 100% rename from client/images/android-chrome-512x512-maskable.png rename to public/images/android-chrome-512x512-maskable.png diff --git a/client/images/android-chrome-512x512.png b/public/images/android-chrome-512x512.png similarity index 100% rename from client/images/android-chrome-512x512.png rename to public/images/android-chrome-512x512.png diff --git a/client/images/apple-touch-icon.png b/public/images/apple-touch-icon.png similarity index 100% rename from client/images/apple-touch-icon.png rename to public/images/apple-touch-icon.png diff --git a/client/images/favicon-96x96.png b/public/images/favicon-96x96.png similarity index 100% rename from client/images/favicon-96x96.png rename to public/images/favicon-96x96.png diff --git a/client/images/logo_blue_512x512.png b/public/images/logo_blue_512x512.png similarity index 100% rename from client/images/logo_blue_512x512.png rename to public/images/logo_blue_512x512.png diff --git a/client/images/logo_transparent_128x128.png b/public/images/logo_transparent_128x128.png similarity index 100% rename from client/images/logo_transparent_128x128.png rename to public/images/logo_transparent_128x128.png diff --git a/client/images/logo_transparent_512x512.png b/public/images/logo_transparent_512x512.png similarity index 100% rename from client/images/logo_transparent_512x512.png rename to public/images/logo_transparent_512x512.png diff --git a/client/images/logo_transparent_white_512x512.png b/public/images/logo_transparent_white_512x512.png similarity index 100% rename from client/images/logo_transparent_white_512x512.png rename to public/images/logo_transparent_white_512x512.png diff --git a/client/images/logo_white_512x512.png b/public/images/logo_white_512x512.png similarity index 100% rename from client/images/logo_white_512x512.png rename to public/images/logo_white_512x512.png diff --git a/client/images/mstile-150x150.png b/public/images/mstile-150x150.png similarity index 100% rename from client/images/mstile-150x150.png rename to public/images/mstile-150x150.png diff --git a/client/images/safari-pinned-tab.svg b/public/images/safari-pinned-tab.svg similarity index 100% rename from client/images/safari-pinned-tab.svg rename to public/images/safari-pinned-tab.svg diff --git a/client/images/snapdrop-graphics.sketch b/public/images/snapdrop-graphics.sketch similarity index 100% rename from client/images/snapdrop-graphics.sketch rename to public/images/snapdrop-graphics.sketch diff --git a/client/images/twitter-stream.jpg b/public/images/twitter-stream.jpg similarity index 100% rename from client/images/twitter-stream.jpg rename to public/images/twitter-stream.jpg diff --git a/client/index.html b/public/index.html similarity index 100% rename from client/index.html rename to public/index.html diff --git a/client/manifest.json b/public/manifest.json similarity index 100% rename from client/manifest.json rename to public/manifest.json diff --git a/client/scripts/clipboard.js b/public/scripts/clipboard.js similarity index 100% rename from client/scripts/clipboard.js rename to public/scripts/clipboard.js diff --git a/client/scripts/network.js b/public/scripts/network.js similarity index 100% rename from client/scripts/network.js rename to public/scripts/network.js diff --git a/client/scripts/theme.js b/public/scripts/theme.js similarity index 100% rename from client/scripts/theme.js rename to public/scripts/theme.js diff --git a/client/scripts/ui.js b/public/scripts/ui.js similarity index 100% rename from client/scripts/ui.js rename to public/scripts/ui.js diff --git a/client/service-worker.js b/public/service-worker.js similarity index 100% rename from client/service-worker.js rename to public/service-worker.js diff --git a/client/sounds/blop.mp3 b/public/sounds/blop.mp3 similarity index 100% rename from client/sounds/blop.mp3 rename to public/sounds/blop.mp3 diff --git a/client/sounds/blop.ogg b/public/sounds/blop.ogg similarity index 100% rename from client/sounds/blop.ogg rename to public/sounds/blop.ogg diff --git a/client/styles.css b/public/styles.css similarity index 100% rename from client/styles.css rename to public/styles.css