Spaces:
Paused
Paused
Update entrypoint.py
Browse files- entrypoint.py +5 -4
entrypoint.py
CHANGED
|
@@ -16,10 +16,11 @@ threading.Thread(target=schedule_backups, daemon=True).start()
|
|
| 16 |
# Write config.yaml dynamically
|
| 17 |
os.makedirs("/home/coder/.config/code-server", exist_ok=True)
|
| 18 |
with open("/home/coder/.config/code-server/config.yaml", "w") as f:
|
| 19 |
-
f.write(f"bind-addr: 0.0.0.0:7860
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
|
|
|
| 23 |
|
| 24 |
# Run code-server
|
| 25 |
cmd = [
|
|
|
|
| 16 |
# Write config.yaml dynamically
|
| 17 |
os.makedirs("/home/coder/.config/code-server", exist_ok=True)
|
| 18 |
with open("/home/coder/.config/code-server/config.yaml", "w") as f:
|
| 19 |
+
f.write(f"""bind-addr: 0.0.0.0:7860
|
| 20 |
+
auth: password
|
| 21 |
+
password: {password}
|
| 22 |
+
cert: false
|
| 23 |
+
""")
|
| 24 |
|
| 25 |
# Run code-server
|
| 26 |
cmd = [
|