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