diff options
Diffstat (limited to 'installation')
-rw-r--r-- | installation/Caddyfile | 5 | ||||
-rw-r--r-- | installation/pleroma.nginx | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/installation/Caddyfile b/installation/Caddyfile new file mode 100644 index 000000000..08d5e6169 --- /dev/null +++ b/installation/Caddyfile @@ -0,0 +1,5 @@ +instance.example.com { # Your instance's domain + proxy / localhost:4000 { + websocket + } +} diff --git a/installation/pleroma.nginx b/installation/pleroma.nginx index 92ed8f32e..f714792da 100644 --- a/installation/pleroma.nginx +++ b/installation/pleroma.nginx @@ -22,6 +22,7 @@ server { server_name example.tld; location / { + add_header 'Access-Control-Allow-Origin' '*'; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; |