Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Green checkmark #35

Open
ItsNoted opened this issue Mar 1, 2025 · 11 comments
Open

Green checkmark #35

ItsNoted opened this issue Mar 1, 2025 · 11 comments

Comments

@ItsNoted
Copy link

ItsNoted commented Mar 1, 2025

How can I get this to be a green checkmark? I followed the instructions. I didn't add any extra env variables and I am access it over https.

Image

@mat-sz
Copy link
Owner

mat-sz commented Mar 1, 2025

Hey, you need to enable WS_REQUIRE_CRYPTO (if you're using the script, just pass -s as a parameter). This will only work over HTTPS though.

@ItsNoted
Copy link
Author

ItsNoted commented Mar 2, 2025

WS_REQUIRE_CRYPTO

I'm using Docker Compose from the repo. So change the "${REQUIRE_CRYPTO}" to -s?

version: '3'
services:
  filedrop:
    build:
      context: ./
      dockerfile: Dockerfile
      args:
        - VITE_APP_NAME=${APP_NAME}
    environment:
      - WS_HOST=0.0.0.0
      - WS_APP_NAME=${APP_NAME}
      - WS_ABUSE_EMAIL=${ABUSE_EMAIL}
      - WS_USE_X_FORWARDED_FOR=${USE_X_FORWARDED_FOR}
      - WS_REQUIRE_CRYPTO=${REQUIRE_CRYPTO}
      - TURN_MODE=hmac
      - TURN_SERVER=turn:(hostname)
      - TURN_USERNAME=filedrop
      - TURN_SECRET=${TURN_SECRET}
    ports:
      - '${PORT}:5000'

  coturn:
    image: coturn/coturn
    command:
      - --log-file=stdout
      - --use-auth-secret
      - --static-auth-secret=${TURN_SECRET}
      - --no-multicast-peers
      - --no-tls
      - --no-dtls
      - --no-software-attribute
      - --fingerprint
      - --no-cli
    network_mode: host
    depends_on:
      - filedrop

@mat-sz
Copy link
Owner

mat-sz commented Mar 2, 2025

Are you using the docker-start.sh script? If not, just start with REQUIRE_CRYPTO=1 docker compose up --build

@ItsNoted
Copy link
Author

ItsNoted commented Mar 2, 2025

Keep getting Bad Gateway. when I change anything in the docker compose.

@mat-sz
Copy link
Owner

mat-sz commented Mar 2, 2025

How did you start it for the first time then? Also, don't change the docker-compose.yml.

@ItsNoted
Copy link
Author

ItsNoted commented Mar 2, 2025

I got it figured out. Is there a prebuilt image on ghcr or dockerhub? Or do you think this is the best way to deploy it?

@mat-sz
Copy link
Owner

mat-sz commented Mar 2, 2025

There's no image, I just use the script.

@ItsNoted
Copy link
Author

ItsNoted commented Mar 2, 2025

mmk.

@mat-sz
Copy link
Owner

mat-sz commented Mar 2, 2025

I'll consider making a workflow to create the images though, since I have that working for Metastable already.

@ItsNoted
Copy link
Author

ItsNoted commented Mar 3, 2025

I built my own image here:

itsnoted/filedrop
https://hub.docker.com/r/itsnoted/filedrop

Use this compose:

services:
  filedrop:
    image: itsnoted/filedrop
    environment:
      - WS_HOST=0.0.0.0
      - WS_APP_NAME=${APP_NAME}
      - WS_ABUSE_EMAIL=${ABUSE_EMAIL}
      - WS_USE_X_FORWARDED_FOR=${USE_X_FORWARDED_FOR}
      - WS_REQUIRE_CRYPTO=1
      - TURN_MODE=hmac
      - TURN_SERVER=turn:(hostname)
      - TURN_USERNAME=filedrop
      - TURN_SECRET=${TURN_SECRET}
    ports:
      - '5000:5000'

  coturn:
    image: coturn/coturn
    command:
      - --log-file=stdout
      - --use-auth-secret
      - --static-auth-secret=${TURN_SECRET}
      - --no-multicast-peers
      - --no-tls
      - --no-dtls
      - --no-software-attribute
      - --fingerprint
      - --no-cli
    network_mode: host
    depends_on:
      - filedrop

@mat-sz
Copy link
Owner

mat-sz commented Mar 3, 2025

Not sure what benefit does this provide over just using the regular docker compose, though. The build times aren't that long.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants