Files
aego/deploy/nginx.conf
T
sanspie 50be5c04bc
ci-platforms / darwin amd64 smoke (push) Skipped
GitHub / linux amd64 native GitHub-hosted native CI: success
ci-platforms / windows amd64 smoke (push) Skipped
GitHub / windows amd64 native GitHub-hosted native CI: success
GitHub / darwin arm64 native GitHub-hosted native CI: success
GitHub / darwin amd64 native GitHub-hosted native CI: success
ci / checks (push) Failing after 1h21m34s
ci / native-authoring (push) Skipped
ci-platforms / darwin arm64 smoke (push) Skipped
github-native / gitea-pending (push) Skipped
github-native / darwin amd64 native (push) Skipped
github-native / linux amd64 native (push) Skipped
github-native / windows amd64 native (push) Skipped
github-native / darwin arm64 native (push) Skipped
github-native / gitea-result (push) Skipped
ci / build (amd64, linux, ubuntu-24.04) (push) Successful in 12m4s
ci / release (push) Skipped
Stage 12.5: Art Workspace and asset authoring
Add dockable Art tools, animation and previews, guarded asset workflows,
and the Web Asset Studio built on the shared Art Core. Expand English and
Russian documentation, interactive Try scenes, examples and editor icons.

Add audio waveform navigation, source analysis, guarded previews and a
browser Worker mixer. Preserve source changes and recovery with bounded
checks, and strengthen native, browser and interoperability CI.

Prepare version 0.12.5 and manually built native artifact candidates.
Fix the production site image demo build dependency.
Reuse immutable scene indices when capturing keyframes.
Wait for real Persist save/load completion in component tests.
Stabilize browser Game View captures outside pointer hover.
Aseprite interchange and persistent Audio EDL recovery remain limited;
the artifact workflow does not publish releases or change stable.
2026-11-15 10:37:50 +03:00

105 lines
3.1 KiB
Nginx Configuration File

map $arg_v $aego_cache {
"" "public, max-age=300";
default "public, max-age=31536000, immutable";
}
map $http_accept_encoding $aego_br {
"~*\bbr\b" ".br";
default "";
}
map $aego_br $aego_br_encoding {
".br" "br";
default "";
}
map $uri $aego_coop {
"~^/play/" "same-origin";
default "";
}
map $uri $aego_coep {
"~^/play/" "require-corp";
default "";
}
map $sent_http_content_type $aego_page_cache {
"~^text/html" "public, max-age=60";
default $aego_cache;
}
server {
listen 80;
root /usr/share/nginx/html;
gzip_static on;
gzip_vary on;
absolute_redirect off;
location = /healthz {
default_type text/plain;
return 200 "ok";
}
# The pinned lesson host embeds only the dedicated Asset Studio origin.
# Other existing documentation routes keep their existing policy.
location ^~ /asset-studio/ {
# Relative guide assets need a canonical directory URL.
if (-d $request_filename) {
rewrite ^(.+[^/])$ $1/ permanent;
}
add_header Content-Security-Policy "default-src 'none'; script-src 'self'; style-src 'self'; img-src 'self' data:; connect-src 'self'; frame-src https://aeditor.akarpov.ru blob:; object-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'" always;
add_header X-Content-Type-Options nosniff always;
add_header Cache-Control "public, max-age=60" always;
try_files $uri $uri/index.html =404;
}
location ~ \.wasm$ {
types { }
default_type application/wasm;
add_header Cache-Control $aego_cache;
add_header Content-Encoding $aego_br_encoding;
add_header Vary Accept-Encoding;
add_header Cross-Origin-Opener-Policy $aego_coop;
add_header Cross-Origin-Embedder-Policy $aego_coep;
try_files $uri$aego_br $uri =404;
}
location ~ ^/install\.(sh|ps1)$ {
default_type text/plain;
add_header Cache-Control "no-cache";
}
# Pages live at clean URLs; /a/index.html -> /a/, /a/b.html -> /a/b.
location ~ \.html$ {
if ($request_uri ~ "^(.*/)index\.html(\?.*)?$") {
return 301 $1$is_args$args;
}
if ($request_uri ~ "^(.+)\.html(\?.*)?$") {
return 301 $1$is_args$args;
}
add_header Cache-Control "public, max-age=60";
add_header Cross-Origin-Opener-Policy $aego_coop;
add_header Cross-Origin-Embedder-Policy $aego_coep;
try_files $uri =404;
}
location ~ \.json$ {
add_header Cache-Control "public, max-age=60";
add_header Cross-Origin-Opener-Policy $aego_coop;
add_header Cross-Origin-Embedder-Policy $aego_coep;
try_files $uri =404;
}
location = / {
add_header Cache-Control "public, max-age=60";
try_files /index.html =404;
}
location / {
add_header Cache-Control $aego_page_cache;
add_header Cross-Origin-Opener-Policy $aego_coop;
add_header Cross-Origin-Embedder-Policy $aego_coep;
try_files $uri $uri.html $uri/ =404;
}
}