Comments (6)
This looks like a problem with your DATABASE_URL
env variable is not set. Make sure that your .env file has a Postgres URI as DATABASE_URL or that you have exported that as an env variable.
See: https://github.com/salesforce/vulnreport/blob/master/.env.example as an example.
from vulnreport.
Thanks .
currently i have postgresql://localhost:5342
for the postgres env variable . is that ok ? or do i need to create a db / user etc and then provide the fully configured URL
for redis again, redis:localhost:6379
is fine ? or do i need more params including db/user info in the url connection string ?
from vulnreport.
Yes, you will need a database created and a user. Vulnreport will seed an existing database, not create a database.
Same for redis.
So for example:
export DATABASE_URL=postgres://vruser@localhost/vulnreport
export REDIS_URL=redis://localhost:6379/15
from vulnreport.
thanks . all working now.. i see an all done :)
message .
however when i do https://<my-host>
i get
This site can’t provide a secure connection
host sent an invalid response.
is this serving over https ? or is it running on a specific port ?
from vulnreport.
How are you starting the server? The default start.sh
script uses lib authbind to bind to port 443.
If you want to use HTTPS properly you'll need to set up a cert, either self-signed or properly issued, and update start.sh
using the example as written. Vulnreport expects to be over 443/HTTPS (if it is deployed to Heroku using the defaults it will) but to be properly set up on your own server you will need to set up a cert, etc. and invoke the app/server properly to use those certs.
E.g. thin start -p 443 --threaded --ssl --ssl-cert-file ... --ssl-key-file ...
For some reference - internally Vulnreport is setup on a server in our internal network with a valid certificate, and it is run behind nginx configured along with the app to serve Vulnreport with the certificate over port 443.
Locally when I work on development I run Vulnreport on OSX using the same command prepended by 'authbind'
from vulnreport.
References on authbind if you're not familiar with it: http://manpages.ubuntu.com/manpages/trusty/man1/authbind.1.html
For OSX: https://github.com/Castaglia/MacOSX-authbind
from vulnreport.
Related Issues (20)
- Can't export report
- Installation/deployment is broken HOT 2
- Admin creds inactive HOT 2
- Ruby version mismatch HOT 3
- Issue while running bundle install HOT 4
- Change export view to PDF HOT 2
- Error when open Settings/VR Settings/Cache Settings HOT 3
- json conflicts HOT 4
- Website is not loaded properly HOT 1
- Rack::Csrf::InvalidCsrfToken at /login HOT 2
- Fails to Build in Heroku HOT 5
- Add another section when creating a report? HOT 3
- Running SEED.rb errors out both on heroku-cli and locally HOT 4
- Running SEED gets segmentation fault on ssl.rb HOT 1
- Fail to install in my Ubuntu
- unmaintained dependencies
- vulnreport.io domain has expired
- Docker file? HOT 1
- SEED.rb fails HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vulnreport.