I’m trying to set up a web hook and I need to point the payload to a local file.
The file inside the Docker container is located at: 
/var/www/discourse/plugins/distodis/docroot/
To what address does this translate to as URL?
discourse.mydomain.com/ ???
I’ve pretty much tried everything I can think of and I’m getting 404 from all my pings.
Any ideas?
             
            
               
               
               
            
            
           
          
            
              
                Falco  
                (Falco)
               
              
                  
                    January 25, 2019,  4:00pm
                   
                   
              2 
               
             
            
              A file that lives in
/var/www/discourse/plugins/plugin-name/public/folder/a.txt
will be in the URL at
https://discourse.example.com/plugins/plugin-name/folder/a.txt
             
            
               
               
              2 Likes 
            
            
           
          
            
            
              
I can access it if I link it here ln -s /var/www/discourse/plugins/distodis/
But then you can download all the PHP files with secrets. They don’t get executed and the webhook is returning 405 when I ping it.
             
            
               
               
               
            
            
           
          
            
              
                Falco  
                (Falco)
               
              
                  
                    January 25, 2019,  4:37pm
                   
                   
              4 
               
             
            
              
What does PHP have to do with Discourse?
             
            
               
               
              1 Like 
            
            
           
          
            
            
              
Nothing directly, but this plugin is using PHP:
But now that I think about it … it might require an external web server, because Discourse doesn’t come with PHP support in nginx, right? 
             
            
               
               
               
            
            
           
          
            
              
                zogstrip  
                (Régis Hanol)
               
              
                  
                    January 25, 2019,  4:42pm
                   
                   
              6 
               
             
            
              That’s definitely not  a Discourse plugin.
             
            
               
               
              1 Like 
            
            
           
          
            
              
                Falco  
                (Falco)
               
              
                  
                    January 25, 2019,  4:44pm
                   
                   
              7 
               
             
            
              Posting from Discourse to Discord in natively supported in this plugin:
  
  
    This  howto  describes how to setup the Discord provider included in discourse-chat-integration. 
 Install
If you haven’t already, install the discourse-chat-integration  plugin 
 Setup Discord
Login to your Discord server 
Click your server name, and choose “Server Settings” 
 [image]  
Click Integrations then Webhooks. Then click Create Webhook 
Choose a bot name, icon, and the Discord channel you want to post to. 
 [image]  
Copy the “Webhook URL”, then hit Save 
 Setup Discourse
In …
   
 
             
            
               
               
              4 Likes 
            
            
           
          
            
              
                zogstrip  
                (Régis Hanol)
               
              
                  
                    January 25, 2019,  4:46pm
                   
                   
              9 
               
             
            
              It’s in the extras   category…
A directory of all extensions & integrations for Discourse which are  not  Discourse plugins, i.e. a CMS plugin, a browser extension or a native application.
 
             
            
               
               
               
            
            
           
          
            
            
              
Hey, thanks a lot. I didn’t see that when I was searching for Discourse/Discord integration plugins. I’m gonna try that out!
             
            
               
               
               
            
            
           
          
            
            
              
Oh, ok. I should have read that more carefully. I just kind of assumed that it’s for plugins which are not official. 
             
            
               
               
              1 Like