Migrate a XenForo forum to Discourse

XenForoのリンクが使用不能にならないように書き直してみました。以下がその結果です。

永続的な書き直しを行うために、@pfaffmanのヘルプに加え、以下のヘルプを使用しました: Set up Let’s Encrypt with multiple domains / redirects

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;
          }