WEDDING UPLOAD - Portable (no install required)
===============================================

Copy this entire "WeddingUpload" folder to any Windows 10/11 PC.
You do NOT need to install Go, Node.js, or anything else.


QUICK START
-----------
1. Edit config.yaml
   - Change admin_password (used at /admin)
   - Change session_secret to any long random text
   - Edit wedding_message if you like

2. (Recommended) Right-click SETUP-FIREWALL.bat -> Run as administrator
   (Allows phones on WiFi to connect)

3. Double-click START.bat
   - A window shows URLs for guests and admin
   - Use the "On your WiFi" address on phones (same network)

4. On this PC open: http://localhost/admin
   (START.bat will ask for Administrator — required for port 80)
   - Default password: changeme (until you change config.yaml)
   - Show the QR code for guests to scan


FOLDER CONTENTS
---------------
  wedding-upload.exe   - The server (includes web UI)
  config.yaml          - Settings
  START.bat            - Double-click to run
  SETUP-FIREWALL.bat   - Run once as Admin for LAN access
  uploads\guests\      - Guest photos/videos appear here
  data\                - Database (do not delete during event)


HTTPS WITH YOUR DOMAIN (saeed-nazanin.ir)
----------------------------------------
Place your Let's Encrypt files in the certs\ folder:
  certs\fullchain.pem
  certs\privkey.pem

In config.yaml set:
  public_host: saeed-nazanin.ir
  tls_auto_generate: false

Guests must open: https://saeed-nazanin.ir/
(NOT the raw IP — or the browser will warn about the certificate)

Local DNS on the venue WiFi must resolve saeed-nazanin.ir to this PC.

http://saeed-nazanin.ir/ redirects to https automatically.

OFFLINE / NO INTERNET
---------------------
This app needs NO internet. Read OFFLINE-NETWORK.txt for how to block
guest phones from the web (router settings). The app itself will not
crash or slow down without internet.

VENUE TIPS
----------
- Connect this PC to the router with Ethernet if possible
- Disable sleep mode while the server is running
- Put QR code from admin page on table cards
- Guests must use the SAME phone/browser to resume interrupted uploads


TROUBLESHOOTING
---------------
- Phones cannot connect: run SETUP-FIREWALL.bat as Administrator
- Port in use: another app may be using port 80 (IIS, Skype). Stop it or set port: 8080 in config.yaml
- Upload fails: hard-refresh the guest page (Ctrl+Shift+R)
