From 47c4e5bb4285e05143b73072cbdc8ddf60b966b1 Mon Sep 17 00:00:00 2001 From: Evgeniy Alekseev Date: Wed, 11 Aug 2021 02:02:18 +0300 Subject: [PATCH] move web server to loopback by default --- package/etc/ahriman.ini | 2 +- tests/ahriman/web/test_web.py | 2 +- tests/testresources/core/ahriman.ini | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package/etc/ahriman.ini b/package/etc/ahriman.ini index e3aa397c..4e384ad7 100644 --- a/package/etc/ahriman.ini +++ b/package/etc/ahriman.ini @@ -43,5 +43,5 @@ command = rsync --archive --compress --partial --delete chunk_size = 8388608 [web] -host = 0.0.0.0 +host = 127.0.0.1 templates = /usr/share/ahriman \ No newline at end of file diff --git a/tests/ahriman/web/test_web.py b/tests/ahriman/web/test_web.py index f0c42c23..d629d55b 100644 --- a/tests/ahriman/web/test_web.py +++ b/tests/ahriman/web/test_web.py @@ -39,5 +39,5 @@ def test_run(application: web.Application, mocker: MockerFixture) -> None: run_application_mock = mocker.patch("aiohttp.web.run_app") run_server(application) - run_application_mock.assert_called_with(application, host="0.0.0.0", port=port, + run_application_mock.assert_called_with(application, host="127.0.0.1", port=port, handle_signals=False, access_log=pytest.helpers.anyvar(int)) diff --git a/tests/testresources/core/ahriman.ini b/tests/testresources/core/ahriman.ini index 96f63bc3..08c79648 100644 --- a/tests/testresources/core/ahriman.ini +++ b/tests/testresources/core/ahriman.ini @@ -26,7 +26,7 @@ target = target = [email] -host = 0.0.0.0 +host = 127.0.0.1 link_path = no_empty_report = no port = 587 @@ -54,5 +54,5 @@ region = eu-central-1 secret_key = [web] -host = 0.0.0.0 +host = 127.0.0.1 templates = ../web/templates \ No newline at end of file