Skip to content

Commit

Permalink
(chore): dev support for nostr
Browse files Browse the repository at this point in the history
  • Loading branch information
markharding committed May 27, 2022
1 parent a67beb2 commit 66a8798
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions containers/nginx/dev-ssr.conf.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ server {

# Cache GET requests by default
if ($request_method = GET){
set $no_cache 0;
set $no_cache 1;
}

# Do not cache if we have a cookie set
Expand Down Expand Up @@ -88,7 +88,6 @@ server {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_redirect off;
proxy_set_header X-Forwarded-Proto $scheme;
}

Expand All @@ -106,7 +105,7 @@ server {
log_not_found off;
}

location ~ ^(/api|/fs|/icon|/carousel|/emails/unsubscribe) {
location ~ ^(/api|/fs|/icon|/carousel|/emails/unsubscribe|/.well-known) {
add_header 'Access-Control-Allow-Origin' "$http_origin";
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS';
Expand All @@ -115,6 +114,11 @@ server {
rewrite ^(.+)$ /index.php last;
}

# Not in block above as did.json is not in the root of the path
location ~ (did.json) {
rewrite ^(.+)$ /index.php last;
}

location ~* \.(woff|woff2|ttf|eot) {
add_header 'Access-Control-Allow-Origin' *;
}
Expand Down

0 comments on commit 66a8798

Please sign in to comment.