xenforo 링크가 사용할 수 없게 되지 않도록 rewrite를 시도해 보았는데, 그 결과가 다음과 같습니다.
영구적인 rewrite를 작성하기 위해 다음 도움을 받았습니다: Set up Let’s Encrypt with multiple domains / redirects 그리고 @pfaffman의 조언도 참고했습니다.
hooks:
...
after_ssl:
- replace:
filename: "/etc/nginx/conf.d/discourse.conf"
from: /#\s*auth_basic_user_file\s*.*;/
to: |
# auth_basic_user_file /etc/nginx/htpasswd;
location /threads/ {
rewrite ^/threads/(.*)\.\d+/?$ /t/$1 permanent;
}