annotate nginx/ubuntu.nabble.com @ 60:36b0e32246d0

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 12 Jun 2022 19:20:41 -0600
parents 41d76bd6268a
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 }