11 proxy_pass http://hook;
14 #------------------------------------------------
15 # Adds required support for Godot 4 WebGL Support
16 #------------------------------------------------
18 add_header Cross-Origin-Resource-Policy same-origin;
19 add_header Cross-Origin-Opener-Policy same-origin;
20 add_header Cross-Origin-Embedder-Policy require-corp;
23 #----------------------------------
25 #----------------------------------
27 # On-disk Brotli-precompressed data files should be served with compression enabled:
28 location ~ .+\.(data|symbols\.json)\.br$ {
29 # Because this file is already pre-compressed on disk, disable the on-demand compression on it.
30 # Otherwise nginx would attempt double compression.
32 add_header Content-Encoding br;
33 default_type application/octet-stream;
36 # On-disk Brotli-precompressed JavaScript code files:
37 location ~ .+\.js\.br$ {
38 gzip off; # Do not attempt dynamic gzip compression on an already compressed file
39 add_header Content-Encoding br;
40 default_type application/javascript;
43 # On-disk Brotli-precompressed WebAssembly files:
44 location ~ .+\.wasm\.br$ {
45 gzip off; # Do not attempt dynamic gzip compression on an already compressed file
46 add_header Content-Encoding br;
47 # Enable streaming WebAssembly compilation by specifying the correct MIME type for
49 default_type application/wasm;
52 # On-disk gzip-precompressed data files should be served with compression enabled:
53 location ~ .+\.(data|symbols\.json)\.gz$ {
54 gzip off; # Do not attempt dynamic gzip compression on an already compressed file
55 add_header Content-Encoding gzip;
56 default_type application/octet-stream;
59 # On-disk gzip-precompressed JavaScript code files:
60 location ~ .+\.js\.gz$ {
61 gzip off; # Do not attempt dynamic gzip compression on an already compressed file
62 add_header Content-Encoding gzip;
63 default_type application/javascript;
66 # On-disk gzip-precompressed WebAssembly files:
67 location ~ .+\.wasm\.gz$ {
68 gzip off; # Do not attempt dynamic gzip compression on an already compressed file
69 add_header Content-Encoding gzip;
70 # Enable streaming WebAssembly compilation by specifying the correct MIME type for
72 default_type application/wasm;