linux
windows
- config domain: bind local IP address (with 80 port) in DNS setting
- config Nginx: set
proxy_pass
to define the redirect location according to theserver_name
localhost
send current IP address tocloud database
URL
search IP address oncloud database
and redirect
localhost
- windows
- script
utils\dynamic_ip_sender.py
utils\dynamic_ip_sender.bat
: executedynamic_ip_sender.py
in condautils\dynamic_ip_sender.vbs
: executedynamic_ip_sender.bat
in silent
- windows service:
Task Scheduler
- trigger
- begin the task:
at log on
- repeat task every
5 minutes
for a duration ofindefinitely
- stop task if it runs longer than
30 minutes
enable
- begin the task:
- action
- action:
start a program
- program/script:
send_dynamic_ip.vbs
- start in:
D:\Repos\CUHKSZ-CE\utils
- action:
- trigger
- script
URL
https://url.cuhkszce.link/
- Google Cloud
- Google Cloud Console
- Google Cloud Run (Pricing)
- mode: allocate CPU when request
-
each month free usage Cool 180k vCPUs 0.08 vCPU * 10k users * 30days 7.5s / (user * day) 360k GiBs 128 MiB * 10k users * 30days 9.6s / (user * day) 2000k requests 10k users * 30days 6.0 / (user * day)
- Google Cloud Function (Pricing)
- each month free 2000k requests => 10k users * 30days => 6.0 / (user * day)
- NameSilo
https://cuhkszce.link/
- 15 RMB/Y
- Google Cloud
https://cuhkszce.pythonanywhere.com/
- Python Anywhere
- free
- Python Anywhere
cloud database
- MongoDB Cloud
- MongoDB Cloud (Pricing)
- storage 512MB
- MongoDB Cloud (Pricing)