Created
March 23, 2025 18:27
-
-
Save Rajinsharwar/e43ce0381294c44c08029cc72d3406f2 to your computer and use it in GitHub Desktop.
NGINX conf to enable Buddyboss Media Restrictions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location ~* /wp-content/uploads/bb_medias/ { | |
if ( $upstream_http_x_accel_redirect = "" ) { | |
return 403; | |
} | |
internal; | |
} | |
location ~* /wp-content/uploads/bb_videos/ { | |
if ( $upstream_http_x_accel_redirect = "" ) { | |
return 403; | |
} | |
internal; | |
} | |
location ~* /wp-content/uploads/bb_documents/ { | |
if ( $upstream_http_x_accel_redirect = "" ) { | |
return 403; | |
} | |
internal; | |
} | |
location ~* /wp-content/uploads/bb_medias/ { | |
autoindex off; | |
} | |
location ~* /wp-content/uploads/bb_videos/ { | |
autoindex off; | |
} | |
location ~* /wp-content/uploads/bb_documents/ { | |
autoindex off; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment