Read-only mirror of the client's existing system as it stood before our work began. Taken from matthijsexpand@149.210.159.152 (TransIP VPS, Lelystad NL) with the client's written permission. Contents: - home-weddingcaketopper/ Next.js app, proxy.py, supabase schema - var-www/ static webroots for all three domains - etc-nginx/ vhost configs (previously unversioned, server-only) Excluded: node_modules (704M, regenerable), .next (17M, regenerable), and env file contents (present on local disk, gitignored — see README). Not our IP. Not covered by the proposal's assignment clause.
59 lines
1.4 KiB
Text
59 lines
1.4 KiB
Text
server {
|
|
server_name weddingcaketopper.nl www.weddingcaketopper.nl;
|
|
|
|
client_max_body_size 25M;
|
|
proxy_read_timeout 300;
|
|
proxy_send_timeout 300;
|
|
proxy_connect_timeout 300;
|
|
|
|
root /home/matthijsexpand/weddingcaketopper/public-site;
|
|
index index.html;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
location /api/claude {
|
|
proxy_pass http://localhost:5000/api/claude;
|
|
|
|
}
|
|
|
|
location /api/imagine {
|
|
proxy_pass http://localhost:5000/api/imagine;
|
|
|
|
|
|
}
|
|
location /api/imagine-edit {
|
|
proxy_pass http://localhost:5000/api/imagine-edit;
|
|
proxy_read_timeout 300;
|
|
proxy_connect_timeout 300;
|
|
proxy_send_timeout 300;
|
|
client_max_body_size 20M;
|
|
}
|
|
|
|
listen 443 ssl; # managed by Certbot
|
|
ssl_certificate /etc/letsencrypt/live/weddingcaketopper.nl/fullchain.pem; # managed by Certbot
|
|
ssl_certificate_key /etc/letsencrypt/live/weddingcaketopper.nl/privkey.pem; # managed by Certbot
|
|
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
|
|
|
|
|
}
|
|
server {
|
|
if ($host = www.weddingcaketopper.nl) {
|
|
return 301 https://$host$request_uri;
|
|
} # managed by Certbot
|
|
|
|
|
|
if ($host = weddingcaketopper.nl) {
|
|
return 301 https://$host$request_uri;
|
|
} # managed by Certbot
|
|
|
|
|
|
listen 80;
|
|
server_name weddingcaketopper.nl www.weddingcaketopper.nl;
|
|
return 404; # managed by Certbot
|
|
|
|
|
|
|
|
|
|
}
|