Skip to content

Commit

Permalink
Improve self-host docs (#1884)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashfame authored Oct 15, 2024
1 parent 5809f13 commit b1a676d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ The combined Apache `.htaccess` file looks like this.

```htaccess
AddType application/wasm .wasm
AddType application/octet-stream .data
```

An equivalent in NGINX.
Expand All @@ -124,20 +123,12 @@ location ~* .wasm$ {
application/wasm wasm;
}
}
location ~* .data$ {
types {
application/octet-stream data;
}
}
location /scope:.* {
rewrite ^scope:.*?/(.*)$ $1 last;
}
```

You may need to adjust the above according to server specifics, particularly how to invoke PHP for the path `/plugin-proxy`.

[Caddy web server](https://caddyserver.com) doesn't require any special config to work.

## Customize bundled data

The file `wp.zip` is a bundle of all the files for the virtual file system in Playground. There's a data file for each available WordPress version.
Expand Down
1 change: 0 additions & 1 deletion packages/playground/remote/.htaccess
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
AddType application/wasm .wasm
AddType application/octet-stream .data

0 comments on commit b1a676d

Please sign in to comment.