provide instance thumbnail at /api/v1/instance (debug)
[akkoma] / installation / pleroma.nginx
index d882908e4c8347024ca4d1acf961ef3a2804ab77..f714792daa62a00db3236906f5df1b6ebbe969ac 100644 (file)
@@ -22,6 +22,10 @@ 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";
         proxy_pass http://localhost:4000;
     }
 
@@ -31,6 +35,4 @@ server {
         proxy_pass http://localhost:4000;
     }
 
-    include snippets/well-known.conf;
-
 }