david_bai
246eff196e
feat(deploy,ssl): automate Let’s Encrypt (webroot), preserve SSL, and auto-enable HTTPS
...
- generate-config.sh
- Add flags: --no-clean, --reset-ssl, --ssl-mode (letsencrypt|self-signed|provided)
- Stop deleting docker/ssl by default; only wipe on explicit --reset-ssl
- Inject ACME webroot route into HTTP (80) server; create docker/letsencrypt-www
- Default SSL_MODE: full=letsencrypt, private/public=self-signed
- Add enable_https_if_cert_present: append 443 server only when server-cert.pem/server-key.pem exist
- Keep self-signed path generating HTTPS immediately (non-basic)
- docker-compose.yml
- Mount ./docker/letsencrypt-www:/var/www/certbot:ro for Nginx ACME challenges
- deploy.sh
- Add --le-email for Let’s Encrypt account email
- Auto-install certbot once (apt-get) and enable systemd timer if available
- Install deploy hook at /etc/letsencrypt/renewal-hooks/deploy/privydrop-reload.sh to:
- Copy renewed certs into docker/ssl
- Hot-reload Nginx; HUP or restart coturn
- First-time issuance (webroot) for <domain> and turn.<domain> after Nginx:80 is up; copy certs
- Re-run generate-config with --no-clean --ssl-mode letsencrypt to enable 443, then reload Nginx
- Behavior changes
- Full mode prefers Let’s Encrypt by default; HTTPS gets enabled as soon as certs exist
- docker/ssl is no longer wiped by config generation
- Notes
- SNI-based turns:443 is not implemented yet (planned)
- Backward compatible with private/public (self-signed)
2025-10-05 12:43:56 +08:00
david_bai
2ee6961634
build(docker): Private mode deployment test successful
...
Test steps:
bash docker/scripts/generate-config.sh --mode private [--local-ip 192.168.0.113]
bash ./deploy.sh --mode private
Front-end directly inlines NEXT_PUBLIC_API_URL, directly connecting to the backend.
CORS (production) supports comma-separated multiple origins, with localhost and local network IPs included by default.
2025-09-29 18:27:12 +08:00
david_bai
cfcd60145a
build: refresh docker deployment workflow
2025-09-26 14:02:55 +08:00
david_bai
67b46d0b30
Merge branch 'fea/docker2' into fea/docker
2025-09-21 22:10:30 +08:00
david_bai
3f075c4a97
fix:Fix a Type error
2025-09-14 23:47:42 +08:00
david_bai
55f118be9a
chore:Temporarily comment out some debug logs
2025-09-14 23:30:47 +08:00
david_bai
95331cb8e6
chore:Remove the redundant safety save button; Use English comments
2025-09-14 23:25:16 +08:00
david_bai
d0ba2eb9c4
chore:Folder resuming transfer is normal
2025-09-14 19:44:11 +08:00
david_bai
79089bed7e
chore:Saving folders to disk now works correctly
2025-09-14 16:49:06 +08:00
david_bai
4dcdf0c3a0
chore:The breakpoint resuming file is saved normally
2025-09-14 11:44:35 +08:00
david_bai
327de90f52
chore:Fix the issue where the breakpoint resume receiver is missing one chunk of data
2025-09-14 11:29:51 +08:00
david_bai
b5404cea72
chore:Split the fileReceiver.ts
2025-09-14 08:36:20 +08:00
david_bai
33f2f041ac
fix:Try to fix the problem of incomplete file size in resumable download
2025-09-14 07:35:34 +08:00
david_bai
8627544946
chore:Exit the room even if it is in transit
2025-09-13 20:01:02 +08:00
david_bai
158433bb0b
chore:Initial addition of Docker related content
2025-09-11 06:46:04 +08:00
david_bai
6f8f4f65bb
chore:Save directory settings UI tip uses internationalization translation
2025-09-10 23:54:35 +08:00
david_bai
61e7c1db50
chore:The production environment only uses one STUN server to improve connection setup speed
2025-09-10 23:48:08 +08:00
david_bai
526e1b49c1
fix:Fix the issue of downloads failing in certain browsers
2025-09-08 23:59:29 +08:00
david_bai
0747898f3c
chore:Use English notes
2025-09-08 00:38:59 +08:00
david_bai
8ff2302c14
code clear up
2025-09-08 00:12:02 +08:00
david_bai
5ca911d1e1
Using a simple backpressure mechanism
2025-09-07 23:38:15 +08:00
david_bai
230a06b3fb
fileSender code splitting
2025-09-07 22:52:59 +08:00
david_bai
99c927f5c7
clear up code
2025-09-07 21:21:43 +08:00
david_bai
3f18002cf0
Directly writing to disk was also tested and passed
2025-09-06 23:49:10 +08:00
david_bai
e385389e1d
Fix the out-of-order file transfer issue for files saved in memory
2025-09-06 22:53:54 +08:00
david_bai
81c2b204f3
It is found that the order of data packets received by Firefox is disordered
2025-09-05 22:58:56 +08:00
david_bai
ec6a18dfc0
fix:Adapting to Firefox browser, not yet completed
2025-09-05 00:19:33 +08:00
david_bai
a82ca50ee9
fix:Fix the issue of failing to join room with simple IDs
...
fix:Fix the issue of failing to join room with simple IDs
2025-09-01 00:04:31 +08:00
david_bai
0bcd2c0f97
chore:Random ID button added with simple ID switching function
2025-08-31 23:36:12 +08:00
david_bai
5af2e8db37
chore:Use English comments instead of Chinese
2025-08-31 23:34:52 +08:00
david_bai
1aa738425f
chore:remove debug code
2025-08-31 22:22:00 +08:00
david_bai
0562e8a3a8
chore(code):Use the speedCalculator to estimate network quality
2025-08-31 22:09:23 +08:00
david_bai
c0317211e7
chore(code):add optimized code, need further debugging
2025-08-31 20:10:31 +08:00
david_bai
7f33064109
chore(code):retryDataSend Add return value,fileSender Remove unnecessary variables.
2025-08-30 23:49:09 +08:00
david_bai
ad4a951525
chore:remove debug code
2025-08-30 00:37:32 +08:00
david_bai
4437c70257
fix:Temporarily optimized the speed issue on the mobile
2025-08-30 00:06:59 +08:00
david_bai
b38ef84bca
chore:fileSender code has been simplified and adjusted
2025-08-29 23:39:35 +08:00
david_bai
9b6e6559fe
fix:Temporarily optimized the speed issue on the mobile
2025-08-29 22:51:10 +08:00
david_bai
d2153d7630
chore(doc):Update the doc on local development mode
2025-08-26 23:59:09 +08:00
david_bai
d9894a3477
feat:Add a function to generate random-length IDs, enhancing room security
2025-08-25 00:22:00 +08:00
david_bai
7b9138ed08
fix(UI):Optimize mobile layout
...
The copy in the extraction method has been added with a fallback mechanism to improve adaptability
2025-08-25 00:04:03 +08:00
david_bai
f7c4121f22
chore(doc&fix):Added instructions for using the security button to the documentation and added the blog to the site map.
2025-08-24 22:21:08 +08:00
david_bai
a1a70bbff5
fix:Fix the bug in server-side rendering where navigator is not available
2025-08-24 08:15:01 +08:00
david_bai
a0554fb185
fix:Fix the download status synchronization issue.
...
Fix the issue where download cannot find file (status synchronization problem).
Change postLogInDebug to postLogToBackend for better understanding.
2025-08-18 23:26:56 +08:00
david bai
9c290754f2
chore:Upgrade dependencies during deployment
2025-08-17 23:00:01 +01:00
david_bai
bb21c90a4e
fix:Fix the incomplete cleanup issue when the receiver exits the room
2025-08-17 23:56:09 +08:00
david_bai
caa861f1bb
refactor:Optimize chaotic state management
2025-08-17 15:44:59 +08:00
david_bai
cbbfae2733
fix:Fix the download count display issue
2025-08-17 13:24:41 +08:00
david_bai
20607be9aa
fix:The recipient needs to clean the connection when leaving the room
2025-08-17 12:14:26 +08:00
david_bai
75f9ff39ae
fix:Now there is a progress bar for file transfer
2025-08-17 10:10:40 +08:00