Skip to content

Commit

Permalink
Merge branch 'feat/friendly-captcha-2272' into 'master'
Browse files Browse the repository at this point in the history
Exempt FriendlyCaptcha generation endpoint from caching engine#2272

See merge request minds/minds!199
  • Loading branch information
markharding committed Apr 11, 2022
2 parents 39eab29 + e535dd8 commit 0584a91
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 3 deletions.
4 changes: 4 additions & 0 deletions containers/nginx/dev-ssr.conf.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ server {
try_files /index.html =404;
}

if ($request_uri ~ /api/v3/friendly-captcha/puzzle) {
set $no_cache 1;
}

location / {
root /var/www/Minds/front/dist/browser/$locale;
Expand Down
4 changes: 4 additions & 0 deletions containers/nginx/dev.conf
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ server {
set $no_cache 1;
}

if ($request_uri ~ /api/v3/friendly-captcha/puzzle) {
set $no_cache 1;
}

# pass the PHP scripts to FastCGI server listening on socket
location ~ \.php$ {
add_header X-Cache $upstream_cache_status;
Expand Down
4 changes: 4 additions & 0 deletions containers/nginx/minds.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ server {
set $no_cache 1;
}

if ($request_uri ~ /api/v3/friendly-captcha/puzzle) {
set $no_cache 1;
}

if ($http_x_forwarded_proto != "https") {
rewrite ^/(.*)$ https://$host$REQUEST_URI permanent;
}
Expand Down
2 changes: 1 addition & 1 deletion engine
Submodule engine updated from 796da4 to bbf347
2 changes: 1 addition & 1 deletion front
Submodule front updated from dd9e62 to d857ba
2 changes: 1 addition & 1 deletion sockets

0 comments on commit 0584a91

Please sign in to comment.