Files
phow2sim/.env.example
T
tiennm99 a1fd486937 refactor: drop Basic auth; require plain-GET MODEL_URL
Simpler contract: operator hosts the zip behind any URL that answers a
plain GET (Nextcloud public share, signed S3/R2 URL, etc.). Any auth is
baked into the URL; the service sends no Authorization headers.

Removes MODEL_DOWNLOAD_USER / MODEL_DOWNLOAD_PASSWORD and their
plumbing. .env.example and README rewritten around the URL-only flow.
2026-04-23 11:07:00 +07:00

16 lines
662 B
Bash

# Copy to `.env` and fill in. `.env` is gitignored.
# URL that serves the PhoW2V zip with a plain HTTP(S) GET.
# Host it however you like; any auth must be baked into the URL itself
# (share token, signed URL, etc.). The service sends no Authorization
# headers. PhoW2V's license forbids *public* redistribution, so use a
# private/unlisted URL you control.
#
# Nextcloud public-share example (no share password):
# MODEL_URL=https://cloud.example.com/s/abc123XYZ/download
MODEL_URL=https://cloud.example.com/s/REPLACE_ME/download
# Variant — must match the filename inside the zip.
MODEL_PATH=/data/phow2v/word2vec_vi_words_300dims.txt
MODEL_VARIANT=word