Last active
April 3, 2021 19:10
-
-
Save ZacharyTalis/8cfafd626ab79a69fb56b5c3b53a2970 to your computer and use it in GitHub Desktop.
PeerTube channel redirect - nginx configuration
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
# /u/User123 -> /video-channels/User123/videos (using 302) | |
# /user/User123 -> same as above | |
# supports optional trailing slash | |
# returns pace rip 404 page if something more than /u/user-name, like /u/user-name/hazardous/text | |
rewrite ^/(?:u|user)/([^/]+)/?$ /video-channels/$1/videos redirect; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment