Skip to content

Commit 3b8ea68

Browse files
committed
chore: avoid using experimental uds in granian
The warning sounds scary, so avoid that feature for now and use TCP instead.
1 parent ecd768d commit 3b8ea68

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

etc/nginx/default.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ server {
7676

7777
{% if WEBLATE_ANUBIS_URL %}
7878
location ~ ^{{ WEBLATE_URL_PREFIX }}(/widget/|/exports/rss/|/healthz/|/hooks/|/accounts/complete/) {
79-
proxy_pass http://unix:/run/granian/weblate.socket;
79+
proxy_pass http://127.0.0.1:8081;
8080
}
8181
{% endif %}
8282

@@ -85,7 +85,7 @@ server {
8585
auth_request /.within.website/x/cmd/anubis/api/check;
8686
error_page 401 = @redirectToAnubis;
8787
{% endif %}
88-
proxy_pass http://unix:/run/granian/weblate.socket;
88+
proxy_pass http://127.0.0.1:8081;
8989
}
9090
}
9191

etc/supervisor/conf.d/web.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ command = /app/venv/bin/granian
77
--runtime-threads 4
88
--backpressure 16
99
--workers %(ENV_WEB_WORKERS)s
10-
--uds /run/granian/weblate.socket
10+
--host 127.0.0.1
11+
--port 8081
1112
weblate.wsgi:application
1213
stdout_logfile=/dev/fd/1
1314
stdout_logfile_maxbytes=0

0 commit comments

Comments
 (0)