Running Discourse on a Subdirectory of an External Domain
The original poster, UltraLuz, is trying to run Discourse on a subdirectory (/blog) of their external domain (ultraluz.com.br) while keeping the root domain hosted on a different server.
Subdomain vs. Subdirectory
The discussion starts with a debate between UltraLuz and pfaffman about the SEO benefits of using a subdomain or subdirectory. UltraLuz finds sources that support the use of subdirectories for SEO, while pfaffman expresses skepticism.
Cloudflare and Subfolder Installs
UltraLuz explores the possibility of using Cloudflare to achieve a subfolder install, but Stephen and pfaffman warn about the complexity and risks involved.
Implementing a Subfolder Install
UltraLuz attempts to implement a subfolder install using a Cloudflare worker but encounters CSP policy issues. RGJ suggests following the official subfolder install procedure.
Using Nginx to Merge Platforms
UltraLuz eventually gives up on Cloudflare workers and uses Nginx to merge the two platforms. The solution involves creating multiple location blocks in the Nginx configuration to proxy traffic from the root domain to the Discourse server.
Final Solution
Falco provides the final solution, which involves installing Discourse on a server following the official subfolder support guide and then using a single location block in the Nginx configuration to proxy traffic from the root domain to the Discourse server. UltraLuz encounters issues with accessing the forum but is advised to restart the process and follow the guide carefully.