Xtrendence / Cryptofolio

Track your cryptocurrency holdings/portfolio with an open-source web, mobile, and desktop application, along with a self-hosted RESTful API.
https://xtrendence.github.io/Cryptofolio/
GNU Affero General Public License v3.0
321 stars 59 forks source link

Nginx config? #53

Closed tandy-1000 closed 3 years ago

tandy-1000 commented 3 years ago

I'm trying to set this up on my server using Nginx, here is my config so far that I have created based on the Apache config:

server {
  listen 8006;

  location / {
    root /var/www/cryptfolio/website/;
    proxy_set_header Host $http_host;
  }

  location /api {
    alias /var/www/cryptfolio/api/;
  }
}

Upon loading the login page these messages are shown in the browser console:

Invalid JSON. main.js:2548:13
Invalid JSON. main.js:1444:12
Invalid JSON. main.js:2548:13
Invalid JSON. main.js:171:12
TypeError: MutationObserver.observe: One of 'childList', 'attributes', 'characterData' must not be false. kanji_content_detect.js:24:26

When attempting to login with password 'admin', POST requests result in error 405, meaning I can't login. The console shows:

POST http://server.local:8006/api/account/login.php?platform=web
[HTTP/1.1 405 Not Allowed 163ms]

If the discussions tab was enabled I would post this there, but if you have any suggestions / corrections for setting this up with Nginx I would appreciate it!

Xtrendence commented 3 years ago

Ayyy, fellow uni student! :)

I'm planning a whole lot for next year since we're supposed to make a massive final year individual project. I asked my lecturers if I could base it on Cryptofolio, and they said yes, so I'm planning on adding/having the following (some of them are already done of course):

Unfortunately, I can't add those to this repo as I'd risk other students using my code and it causing a plagiarism issue, but at the end of the year I can release a new Cryptofolio update with all those things.

tandy-1000 commented 3 years ago

That's damn exciting; good luck with it. Let me know if you need a beta tester. :)

Xtrendence commented 3 years ago

Whenever I do the testing and whatnot, I'll ask them if getting people from outside the uni to test it would be acceptable. If they allow it, then for sure, thank you for the offer!