mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
testenv https redirect
This commit is contained in:
parent
eb95257c60
commit
9c56f94332
3
Makefile
3
Makefile
@ -120,8 +120,7 @@ run: testenv $(TESTENV_GPIO)
|
||||
&& test -d /sys/kernel/debug/gpio-mockup/`basename $(TESTENV_GPIO)`/ || (echo \"Missing GPIO mockup\" && exit 1) \
|
||||
&& (socat PTY,link=$(TESTENV_HID) PTY,link=/dev/ttyS11 &) \
|
||||
&& cp -r /usr/share/kvmd/configs.default/nginx/* /etc/kvmd/nginx \
|
||||
&& sed -i '$$ s/.$$//' /etc/kvmd/nginx/nginx.conf \
|
||||
&& cat testenv/nginx.append.conf >> /etc/kvmd/nginx/nginx.conf \
|
||||
&& cp testenv/redirect-to-https.conf /etc/kvmd/nginx \
|
||||
&& cp -a /testenv/.ssl/nginx /etc/kvmd/nginx/ssl \
|
||||
&& cp -a /testenv/.ssl/vnc /etc/kvmd/vnc/ssl \
|
||||
&& cp /usr/share/kvmd/configs.default/kvmd/*.yaml /etc/kvmd \
|
||||
|
||||
@ -1,8 +0,0 @@
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
server_name localhost;
|
||||
include /etc/kvmd/nginx/ssl.conf;
|
||||
include /etc/kvmd/nginx/kvmd.ctx-server.conf;
|
||||
include /usr/share/kvmd/extras/*/nginx.ctx-server.conf;
|
||||
}
|
||||
}
|
||||
1
testenv/redirect-to-https.conf
Normal file
1
testenv/redirect-to-https.conf
Normal file
@ -0,0 +1 @@
|
||||
return 301 https://$host:4430$request_uri;
|
||||
Loading…
x
Reference in New Issue
Block a user