annotate nginx/ubuntu.nabble.com @ 63:4987e1a38a6c

remove ads from homepage
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 28 Aug 2024 15:34:42 -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 }