lewismc opened a new issue #11:
URL: https://github.com/apache/incubator-ponymail-foal/issues/11


   I have Elasticsearch running and accessible on localhost:9200
   I performed ponymail setup without any issues.
   I successfully imported pipermail data (thank you @Humbedooh)
   I ran ponymail server on localhost:8080
   I set up a basic Docker image for HTTPD
   ```
   FROM httpd:2.4
   COPY ./public_html/ /usr/local/apache2/htdocs/
   ```
   I edit `webui/js/config.js` as follows
   ```
    52     URLBase: 'http://localhost:8081/',
    53     apiURL: 'http://localhost:8080/',
   ```
   I copy everything from `webui` to `public_html` then build the image and run 
the container
   ```
   docker build -t ponymail .
   docker run -dit --name ponymail -p 8081:80 ponymail
   ```
   So now HTTPD is running fine locally and I can access index.html however I 
have a couple of issues
   ```
   An error occured while trying to fetch 
http://localhost:8080/api/preferences.lua:
   TypeError: NetworkError when attempting to fetch resource.
   ```
   Also the CORS issue (see screenshot below)
   I tried creating `.htaccess` with content `Header set 
Access-Control-Allow-Origin "*"` but still no luck.
   
   <img width="1680" alt="Screen Shot 2021-02-17 at 3 17 51 PM" 
src="https://user-images.githubusercontent.com/1165719/108280703-695e7180-7133-11eb-94f2-ed5425899b74.png";>
   
   Any pointers folks? Thank you


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to