move web server to loopback by default

This commit is contained in:
Evgenii Alekseev 2021-08-11 02:02:18 +03:00
parent d548fa02f0
commit 47c4e5bb42
3 changed files with 4 additions and 4 deletions

View File

@ -43,5 +43,5 @@ command = rsync --archive --compress --partial --delete
chunk_size = 8388608 chunk_size = 8388608
[web] [web]
host = 0.0.0.0 host = 127.0.0.1
templates = /usr/share/ahriman templates = /usr/share/ahriman

View File

@ -39,5 +39,5 @@ def test_run(application: web.Application, mocker: MockerFixture) -> None:
run_application_mock = mocker.patch("aiohttp.web.run_app") run_application_mock = mocker.patch("aiohttp.web.run_app")
run_server(application) 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)) handle_signals=False, access_log=pytest.helpers.anyvar(int))

View File

@ -26,7 +26,7 @@ target =
target = target =
[email] [email]
host = 0.0.0.0 host = 127.0.0.1
link_path = link_path =
no_empty_report = no no_empty_report = no
port = 587 port = 587
@ -54,5 +54,5 @@ region = eu-central-1
secret_key = secret_key =
[web] [web]
host = 0.0.0.0 host = 127.0.0.1
templates = ../web/templates templates = ../web/templates