2023-05-19 02:46:07 +00:00
|
|
|
server {
|
|
|
|
listen 80;
|
2023-05-31 19:52:38 +00:00
|
|
|
server_name gist.orionkindel.com;
|
|
|
|
|
|
|
|
location ~ ^/embed(/.*)$ {
|
|
|
|
root /home/git;
|
|
|
|
try_files /opengist.embed.html =404;
|
|
|
|
}
|
2023-05-19 02:46:07 +00:00
|
|
|
|
|
|
|
location / {
|
2023-05-31 19:52:38 +00:00
|
|
|
proxy_pass http://localhost:8881;
|
2023-05-19 02:46:07 +00:00
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
}
|
|
|
|
}
|