mirror of
https://github.com/nikdoof/limetime.git
synced 2025-12-13 09:42:26 +00:00
23 lines
550 B
Plaintext
23 lines
550 B
Plaintext
server {
|
|
listen 80;
|
|
server_name <%= @host %>;
|
|
server_name_in_redirect off;
|
|
|
|
<% if @static %>
|
|
location /static {
|
|
alias <%= @static %>;
|
|
}
|
|
<% end %>
|
|
|
|
location / {
|
|
proxy_pass_header Server;
|
|
proxy_set_header Host $http_host;
|
|
proxy_redirect off;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Scheme $scheme;
|
|
proxy_connect_timeout 10;
|
|
proxy_read_timeout 3600;
|
|
proxy_pass http://127.0.0.1:<%= @port %>/;
|
|
proxy_buffering off;
|
|
}
|
|
} |