mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 18:35:51 +02:00
embed frontend
This commit is contained in:
parent
882fe8c074
commit
d09f484790
86 changed files with 884 additions and 12326 deletions
17
template/http-conf
Normal file
17
template/http-conf
Normal file
|
@ -0,0 +1,17 @@
|
|||
server {
|
||||
listen {{ http_listen_port }};
|
||||
listen [::]:{{ http_listen_port }};
|
||||
|
||||
server_name {{ server_name }};
|
||||
|
||||
root ;
|
||||
|
||||
index ;
|
||||
|
||||
location /.well-known {
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real_IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $remote_addr:$remote_port;
|
||||
proxy_pass http://127.0.0.1:{{ HTTP01PORT }};
|
||||
}
|
||||
}
|
29
template/https-conf
Normal file
29
template/https-conf
Normal file
|
@ -0,0 +1,29 @@
|
|||
server {
|
||||
listen {{ http_listen_port }};
|
||||
listen [::]:{{ http_listen_port }};
|
||||
|
||||
server_name {{ server_name }};
|
||||
|
||||
rewrite ^(.*)$ https://$host$1 permanent;
|
||||
}
|
||||
|
||||
server {
|
||||
listen {{ https_listen_port }} ssl http2;
|
||||
listen [::]:{{ https_listen_port }} ssl http2;
|
||||
|
||||
server_name {{ server_name }};
|
||||
|
||||
ssl_certificate {{ ssl_certificate }};
|
||||
ssl_certificate_key {{ ssl_certificate_key }};
|
||||
|
||||
root ;
|
||||
|
||||
index ;
|
||||
|
||||
location /.well-known {
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real_IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $remote_addr:$remote_port;
|
||||
proxy_pass http://127.0.0.1:{{ HTTP01PORT }};
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue