File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,13 +20,20 @@ jobs:
2020
2121 - name : Generate config.js
2222 run : |
23- cp config.template.js config.js
24- sed -i "s|{{STUN_URL_GOLDI}}|${{ secrets.STUN_URL_GOLDI }}|g" config.js
25- sed -i "s|{{STUN_URL_GOOGLE}}|${{ secrets.STUN_URL_GOOGLE }}|g" config.js
26- sed -i "s|{{STUN_URL_METERED}}|${{ secrets.STUN_URL_METERED }}|g" config.js
27- sed -i "s|{{TURN_URL_GOLDI}}|${{ secrets.TURN_URL_GOLDI }}|g" config.js
28- sed -i "s|{{TURN_USERNAME}}|${{ secrets.TURN_USERNAME }}|g" config.js
29- sed -i "s|{{TURN_CREDENTIAL}}|${{ secrets.TURN_CREDENTIAL }}|g" config.js
23+ echo "window.CONFIG = {
24+ iceServers: [
25+ { urls: \"${{ secrets.STUN_URL_GOLDI }}\" },
26+ { urls: \"${{ secrets.STUN_URL_GOOGLE }}\" },
27+ { urls: \"${{ secrets.STUN_URL_METERED }}\" },
28+ {
29+ urls: \"${{ secrets.TURN_URL_GOLDI }}\",
30+ username: \"${{ secrets.TURN_USERNAME }}\",
31+ credential: \"${{ secrets.TURN_CREDENTIAL }}\"
32+ }
33+ ],
34+ iceTransportPolicy: \"all\",
35+ iceCandidatePoolSize: 10
36+ };" > config.js
3037
3138 - name : Setup Pages
3239 uses : actions/configure-pages@v4
You can’t perform that action at this time.
0 commit comments