annotate nginx/ubuntu.nabble.com @ 58:41d76bd6268a

add doc for ssl
author Vadim Filimonov <fffilimonov@yandex.ru>
date Tue, 30 Nov 2021 09:32:14 +0200
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
58
41d76bd6268a add doc for ssl
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
1 server {
41d76bd6268a add doc for ssl
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
2 listen 80;
41d76bd6268a add doc for ssl
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
3 listen [::]:80;
41d76bd6268a add doc for ssl
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
4 server_name ubuntu.nabble.com;
41d76bd6268a add doc for ssl
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
5
41d76bd6268a add doc for ssl
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
6 location / {
41d76bd6268a add doc for ssl
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
7 add_header Access-Control-Allow-Origin *;
41d76bd6268a add doc for ssl
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
8 proxy_pass http://127.0.0.1:8080;
41d76bd6268a add doc for ssl
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
9 proxy_set_header Host $http_host;
41d76bd6268a add doc for ssl
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
10 proxy_set_header X-Forwarded-Proto $scheme;
41d76bd6268a add doc for ssl
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
11 proxy_set_header X-Real-IP $remote_addr;
41d76bd6268a add doc for ssl
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
12 }
41d76bd6268a add doc for ssl
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
13 }