From: Dessalines Date: Sat, 3 Oct 2020 14:53:48 +0000 (-0500) Subject: Add line showing default ports for nginx. Fixes #1167 X-Git-Url: http://these/git/%22https:/image.com/readmes/%7B%60%24%7BarchiveUrl%7D/%7Bnode.comment.attributed_to%7D?a=commitdiff_plain;h=7cc5f53cad63a26bff8f4736e9a74d6c0a19c493;p=lemmy.git Add line showing default ports for nginx. Fixes #1167 --- diff --git a/ansible/lemmy.yml b/ansible/lemmy.yml index b4187158..28179ba4 100644 --- a/ansible/lemmy.yml +++ b/ansible/lemmy.yml @@ -79,6 +79,7 @@ lemmy_docker_image: "dessalines/lemmy:{{ lookup('file', 'VERSION') }}" lemmy_docker_ui_image: "dessalines/lemmy-ui:{{ lookup('file', 'VERSION') }}" lemmy_port: "8536" + lemmy_ui_port: "1235" pictshare_port: "8537" iframely_port: "8538" diff --git a/ansible/templates/nginx.conf b/ansible/templates/nginx.conf index 7f13259a..03b139bb 100644 --- a/ansible/templates/nginx.conf +++ b/ansible/templates/nginx.conf @@ -57,6 +57,10 @@ server { proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + # The default ports: + # lemmy_ui_port: 1235 + # lemmy_port: 8536 + set $proxpass "http://0.0.0.0:{{ lemmy_ui_port }}"; if ($http_accept = "application/activity+json") { set $proxpass "http://0.0.0.0:{{ lemmy_port }}";