Previously I shared a post about Hugging Face
https://www.nodeloc.com/t/topic/55010
Today I’m sharing another method
Registration address: https://huggingface.co/
-
Click the avatar in the upper right corner to create a new Space
-
The space name, description, and license can be anything; choose any open‑source license. Select Space SDK → Docker, leave the rest as default, and create the space.
-
Open the project repository (thanks to Lao Wang for the support). When forking, deselect the upstream copy, click the folder, and select the first workflow.
GitHub - eooce/node-ws: 基于serverless实现的vless+trojan双协议,无内核,node环境通用项目
-
Click the pencil icon to edit, locate line 44 where the image name is built; you can change it (or leave it) – it’s recommended that each person uses a unique name.
-
Click Save in the upper right corner, then click the project name, select main, a dropdown will appear – choose hug.
-
Click Actions, press the green Run button, then click the project name to return to the homepage, select the hug branch, and open index.js.

-
Edit the file: line 11 is the UUID (you can change it), line 15 is the domain assigned to the project, line 18 is the subscription token, default is sub.
-
Copy the content, open the navigation site, go to Tools, click JS Obfuscator, delete the existing example code and paste the copied code. Choose an obfuscation level of Medium (not too high).
https://nav.eooce.com/
-
Paste the copied content back into index.js and save.
-
Return to the project, click Actions, find the second item on the left, click Run workflow on the right, then press the green button. Wait for it to finish (about 30–45 seconds).
-
Go back to the project homepage, locate Packages in the lower right corner; your built image will be displayed.
-
Return to Hugging Face, click Files, click the + on the right, select the second option; Google Translate will open automatically, sorry for the inconvenience.
-
The filename must be Dockerfile. Its content starts with
FROMfollowed by the image address (it should start withghcr). Paste the address afterFROM, mind any spaces. On line 3 addENVand, after a space in English input mode, addDOMAIN=your‑space‑domain-or‑reverse‑proxy‑domain. Click the three dots on the right, choose the second‑last option; at the bottom you’ll see an assigned domain. Scroll down and save the file – the image will be built automatically.
-
Click App, click the three dots on the right, choose the second‑last option; the domain at the bottom is accessible. Append
/subto the URL to get the node, then copy the node information or subscription URL into V2rayN. Direct connections may be a bit slow and might need a CDN.
-
In Cloudflare select Workers, create a Hello World script, return to the project and copy the code. You need to replace the domain with the one provided by the space (no prefix needed). After saving, add a custom domain and access the custom domain.
-
Click the second file, then click the pencil icon to edit, replace the domain, and click Save & Deploy.



















