This is far from a copy-and-paste solution, and not for the faint of heart, but here are some pieces of the puzzle:
./launcher enter app
cd /etc/nginx/conf.d
Then create a animeforums.conf that points to the new keys. Start on step 5 of these instructions at Digital Ocean
and add:
rewrite (.*) https://discuss.moe$1 permanent;