Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion extra/guac related/nginx-site-config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

location /guac/ {
location ^~ /guac/websocket-tunnel/ {
proxy_pass http://127.0.0.1:8008;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $host;
Expand Down
7 changes: 2 additions & 5 deletions web/web/guac_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
from pathlib import Path

from django.utils.log import DEFAULT_LOGGING

CUCKOO_PATH = os.path.join(Path.cwd(), "..")
sys.path.append(CUCKOO_PATH)

from lib.cuckoo.common.config import Config

# Build paths inside the project like this: BASE_DIR / "subdir".
BASE_DIR = Path(__file__).resolve().parent.parent

Expand Down Expand Up @@ -39,8 +38,6 @@

LOGGING_CONFIG = None

WEB_AUTHENTICATION = getattr(Config("web"), "web_auth", {}).get("enabled", False)

ALLOWED_HOSTS = [
"*",
]
Expand All @@ -58,7 +55,6 @@

MIDDLEWARE = [
"django.contrib.sessions.middleware.SessionMiddleware",
"django.contrib.auth.middleware.AuthenticationMiddleware",
"django.middleware.common.CommonMiddleware",
"django.middleware.csrf.CsrfViewMiddleware",
"django.contrib.messages.middleware.MessageMiddleware",
Expand Down Expand Up @@ -183,3 +179,4 @@
from lib.cuckoo.core.data.guac_session import GuacSession # noqa: F401
from lib.cuckoo.core.data.db_common import Base
Base.metadata.create_all(_db.engine)

Loading