Files
Ivan Starkov e5369ef930 experimental: Youtube animations (#5072)
## Description

### Not finished, should be merged as has small issues fixed

https://video-viking.wstd.work/
https://video-viking.wstd.work/entry

## Steps for reproduction

1. click button
2. expect xyz

## Code Review

- [ ] hi @kof, I need you to do
  - conceptual review (architecture, feature-correctness)
  - detailed review (read every line)
  - test it on preview

## Before requesting a review

- [ ] made a self-review
- [ ] added inline comments where things may be not obvious (the "why",
not "what")

## Before merging

- [ ] tested locally and on preview environment (preview dev login:
0000)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env` file
2025-04-06 14:47:16 +03:00

25 lines
562 B
Bash
Executable File

#!/bin/bash
# Proxies https://wstd.dev:4001 to http://localhost:4002
# Used for debugging when HTTPS is required
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PEM_PATH="$SCRIPT_DIR/haproxy.pem"
TMP_CFG=$(mktemp /tmp/haproxy.XXXXXX)
echo $TMP_CFG
cat <<EOF > "$TMP_CFG"
frontend proxy-https
bind *:4001 ssl crt ${PEM_PATH} alpn h2,http/1.1
default_backend proxy
backend proxy
balance roundrobin
mode http
http-request set-header X-Forwarded-Host %[req.hdr(Host)]
server rgw1 localhost:4002 check
EOF
exec haproxy -f "$TMP_CFG" -db