Эх сурвалжийг харах

2022-03-10 / ct_chen

Actions:
Webservice modify for security detection of AC
1. http force to https
2. add login account{ id:charger , password:1234567890 }
Files:
1. EVSE/rootfs/etc/lighttpd/conf.d/ssl.conf
2. EVSE/rootfs/var/www/valid_info
ct_chen 3 жил өмнө
parent
commit
c42639eee4

+ 1 - 1
EVSE/rootfs/etc/lighttpd/conf.d/ssl.conf

@@ -6,7 +6,7 @@ $HTTP["scheme"] == "http" {
     # capture vhost name with regex conditiona -> %0 in redirect pattern
     # must be the most inner block to the redirect rule
     $HTTP["host"] =~ ".*" {
-#        url.redirect = (".*" => "https://%0$0")
+        url.redirect = (".*" => "https://%0$0")
     }
 }
 

+ 1 - 1
EVSE/rootfs/var/www/valid_info

@@ -1 +1 @@
-{"admin":"528a82ee4b7956c31150a2e67b644011","superPhihong":"528a82ee4b7956c31150a2e67b644011"}
+{"admin":"528a82ee4b7956c31150a2e67b644011","superPhihong":"528a82ee4b7956c31150a2e67b644011","charger":"e807f1fcf82d132f9bb018ca6738a19f"}

+ 0 - 1
board-support/linux-4.9.59+gitAUTOINC+a75d8e9305-ga75d8e9305/lib/.crc-ccitt.ko.cmd

@@ -1 +0,0 @@
-cmd_lib/crc-ccitt.ko := /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-ld -EL -r  -T ./scripts/module-common.lds --build-id  -o lib/crc-ccitt.ko lib/crc-ccitt.o lib/crc-ccitt.mod.o ;  true

+ 0 - 1
board-support/linux-4.9.59+gitAUTOINC+a75d8e9305-ga75d8e9305/lib/.crc-itu-t.ko.cmd

@@ -1 +0,0 @@
-cmd_lib/crc-itu-t.ko := /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-ld -EL -r  -T ./scripts/module-common.lds --build-id  -o lib/crc-itu-t.ko lib/crc-itu-t.o lib/crc-itu-t.mod.o ;  true