Add VPS deployment target and Ansible provisioning for lynglang.com

- deploy_site now defaults to new VPS (94.130.36.94, /var/www/lynglang);
  use --old to deploy to d.lynglang.com as before
- infra/setup_vps.yml: Ansible playbook installs nginx + certbot, obtains
  SSL cert for lynglang.com, fixes Debian buster EOL apt sources
- infra/inventory.ini and infra/templates/nginx_lynglang.conf.j2 included

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
sergeychandClaude Sonnet 4.6 committed 2026-04-22 12:31:01 +03:00
1 parent d0f51928de
commit 0f5343fa17
4 files changed
+140 -11

No files matched your search

+14 -11
View File
@@ -18,10 +18,12 @@
#
upload_only=false
target=vps # default: new server; use --old for d.lynglang.com
for arg in "$@"; do
if [[ "$arg" == "-u" || "$arg" == "--upload-only" ]]; then
upload_only=true
break
elif [[ "$arg" == "--old" ]]; then
target=com
fi
done
@@ -88,19 +90,20 @@ function updateIdeaPluginDownloadLink() {
fi
}
# default target settings
case "com" in
# target settings (-t com | -t vps)
case "$target" in
com)
SSH_HOST=sergeych@d.lynglang.com # host to deploy to
SSH_PORT=22 # ssh port on it
ROOT=/bigstore/sergeych_pub/lyng # directory to rsync to
SSH_HOST=sergeych@d.lynglang.com
SSH_PORT=22
ROOT=/bigstore/sergeych_pub/lyng
;;
vps)
SSH_HOST=sergeych@94.130.36.94
SSH_PORT=22
ROOT=/var/www/lynglang
;;
# com)
# SSH_HOST=vvk@front-01.neurodatalab.com
# ROOT=/home/vvk
# ;;
*)
echo "*** ERROR: target not specified (use deploy com | dev)"
echo "*** ERROR: unknown target '$target' (use -t com | -t vps)"
echo "*** stop"
exit 101
esac