GithubHelp home page GithubHelp logo

Comments (13)

Felix83000 avatar Felix83000 commented on August 17, 2024

Can you show your .env file please?

from watcher.

Felix83000 avatar Felix83000 commented on August 17, 2024

Please look this issue: #8

from watcher.

Felix83000 avatar Felix83000 commented on August 17, 2024

After changing the file you need to do this:

  • docker-compose down

  • docker-compose up

from watcher.

xme avatar xme commented on August 17, 2024
# Time Zone
TZ=Europe/Brussels

# SECURITY WARNING: In production please put DJANGO_DEBUG environment variable to False
DJANGO_DEBUG=False

# SECURITY WARNING: keep the secret key used in production secret!
# use 'openssl rand -base64 33' to generate
DJANGO_SECRET_KEY=xxxxxxxxxxx

# In case of "Bad Request" Error when accessing Watcher web interface.
# Fill this variable with your Watcher Server Instance IP.
# It is limited to a single IP address. Please use this syntax: ALLOWED_HOST=X.X.X.X
ALLOWED_HOST=192.168.240.10

# DJANGO EMAIL CONFIGURATION
EMAIL_FROM=xxxxx
SMTP_SERVER=xxxxxxx
WATCHER_URL=https://xxxxxx

# THE HIVE SETUP
THE_HIVE_URL=https://xxxxxxx
THE_HIVE_KEY=xxxxxxxx
THE_HIVE_CASE_ASSIGNEE=xavier

# MISP Setup
MISP_URL=https://xxxxxxxx
MISP_VERIFY_SSL=False
MISP_KEY=xxxxxxxxx
# Optional
MISP_TICKETING_URL=

# LDAP Setup
AUTH_LDAP_SERVER_URI=
AUTH_LDAP_BIND_DN=
AUTH_LDAP_BIND_PASSWORD=
AUTH_LDAP_BASE_DN=
AUTH_LDAP_FILTER=(uid=%(user)s)

# Searx Setup
SEARX_HOSTNAME=10.10.10.3:8080
SEARX_PROTOCOL=http://

# automaticaly update settings to the new version
# comment this line if you made / will make some modifications to the settings
SEARX_COMMAND=-f

# If you have a proxy, please fill these variables
HTTP_PROXY=
HTTPS_PROXY=

from watcher.

Felix83000 avatar Felix83000 commented on August 17, 2024

The configuration seems okay...

Please do this:

  • Set DJANGO_DEBUG to True

  • docker-compose down

  • docker-compose up

  • Try to access Watcher via FQDN and upload a screenshot here.

Thx

from watcher.

xme avatar xme commented on August 17, 2024

Screenshot 2020-10-23 at 10 38 12

from watcher.

Felix83000 avatar Felix83000 commented on August 17, 2024

Okay, so as you can see ALLOWED_HOST variable is set to 192.168.240.10.

So you need to add the IP value that you have hidden "You may need to add X.X.X.X to ALLOWED_HOST"

from watcher.

xme avatar xme commented on August 17, 2024

But the hidden value is my FQDN... That's why I don't understand ;-)
Sorry, I had to mention this immediately

from watcher.

Felix83000 avatar Felix83000 commented on August 17, 2024

The condition to be satisfied is that the host header (or X-Forwarded-Host if USE_X_FORWARDED_HOST is enabled) should match one of the values in ALLOWED_HOSTS.

from watcher.

Felix83000 avatar Felix83000 commented on August 17, 2024

Try to put your FQDN instead.

from watcher.

Felix83000 avatar Felix83000 commented on August 17, 2024

Or you can do this: ALLOWED_HOST=* but it is less secure...

from watcher.

xme avatar xme commented on August 17, 2024

It worked with the FQDN set as allowed_host!
Nope, no "*" ;-)
Tx!

from watcher.

Felix83000 avatar Felix83000 commented on August 17, 2024

I updated the documentation related to this issue: 42a632e

from watcher.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.