diff --git a/BootstrapBlazor.sln b/BootstrapBlazor.sln index 8cad0d1f837..0eee426e558 100644 --- a/BootstrapBlazor.sln +++ b/BootstrapBlazor.sln @@ -15,7 +15,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "linux", "linux", "{EA765165 ProjectSection(SolutionItems) = preProject scripts\linux\ba.blazor.service = scripts\linux\ba.blazor.service scripts\linux\deploy-blazor.sh = scripts\linux\deploy-blazor.sh + scripts\linux\deploy.sh = scripts\linux\deploy.sh scripts\linux\nginx.conf = scripts\linux\nginx.conf + scripts\linux\remove.sh = scripts\linux\remove.sh EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "windows", "windows", "{4A5226E2-8EBD-4DEA-A1F5-2DF374655FA9}" @@ -66,6 +68,14 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{02EA681E-C README.zh-CN.md = README.zh-CN.md EndProjectSection EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "cert", "cert", "{C075C6C8-B9CB-4AC0-9BDF-B2002B4AB99C}" + ProjectSection(SolutionItems) = preProject + scripts\linux\cert\blazor.zone.cer = scripts\linux\cert\blazor.zone.cer + scripts\linux\cert\blazor.zone.key = scripts\linux\cert\blazor.zone.key + scripts\linux\cert\www.blazor.zone.cer = scripts\linux\cert\www.blazor.zone.cer + scripts\linux\cert\www.blazor.zone.key = scripts\linux\cert\www.blazor.zone.key + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -115,6 +125,7 @@ Global {6D73FED6-0086-460B-84FA-1FA78176BF59} = {7C1D79F1-87BC-42C1-BD5A-CDE4044AC1BD} {D8AEAFE7-10AF-4A5B-BC67-FE740A2CA1DF} = {7C1D79F1-87BC-42C1-BD5A-CDE4044AC1BD} {01DA4687-0973-4CA6-97F5-04E0B8DD1B13} = {7C1D79F1-87BC-42C1-BD5A-CDE4044AC1BD} + {C075C6C8-B9CB-4AC0-9BDF-B2002B4AB99C} = {EA765165-0542-41C8-93F2-85787FEDEDFF} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {0DCB0756-34FA-4FD0-AE1D-D3F08B5B3A6B} diff --git a/scripts/linux/cert/blazor.zone.cer b/scripts/linux/cert/blazor.zone.cer new file mode 100644 index 00000000000..ed0d0f7df03 --- /dev/null +++ b/scripts/linux/cert/blazor.zone.cer @@ -0,0 +1,108 @@ +-----BEGIN CERTIFICATE----- +MIIGdDCCBFygAwIBAgIQajxj43MW/K+15g02CQHxkTANBgkqhkiG9w0BAQwFADBL +MQswCQYDVQQGEwJBVDEQMA4GA1UEChMHWmVyb1NTTDEqMCgGA1UEAxMhWmVyb1NT +TCBSU0EgRG9tYWluIFNlY3VyZSBTaXRlIENBMB4XDTI0MDYyOTAwMDAwMFoXDTI0 +MDkyNzIzNTk1OVowFjEUMBIGA1UEAxMLYmxhem9yLnpvbmUwggEiMA0GCSqGSIb3 +DQEBAQUAA4IBDwAwggEKAoIBAQDn0mzWjpyxB23WziN6hdf2bc7LCKpta6PMu+fV +nEXPOL+tmEm4n3w6OyseE+9PwELftU6AYMjYCnjotieK/BRwY0yBUXew0zR8giEe +VV7H8d91qkMomtN3kYBlghWoN51HzXfSjOZT+pZXtE5Ku17qqzuOWdQaP1opWn3c +B9CVheagx/uHmRRudT5m7AuynHzPq68D1yLRGU8odLZCR8W0w9rqqttgb/y/HhJ/ +zHdMkzccEHXR1Lw4rvlyvNX0MNUcB+lwsmSgOW9TsJltyM63TcSLpQWLkbkCnalp +cmbidAExkIgkysHQa0N4fiqTZRb6ji37AQl9VYOKI/G+MPDJAgMBAAGjggKHMIIC +gzAfBgNVHSMEGDAWgBTI2XhootkZaNU9ct5fCj7ctYaGpjAdBgNVHQ4EFgQUx61q +fxexO5QjJvIAF/tQxjPM+UYwDgYDVR0PAQH/BAQDAgWgMAwGA1UdEwEB/wQCMAAw +HQYDVR0lBB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L0FBQUNlcnRpZmljYXRlU2VydmljZXMuY3JsMDQGCCsGAQUFBwEBBCgwJjAkBggr +BgEFBQcwAYYYaHR0cDovL29jc3AuY29tb2RvY2EuY29tMA0GCSqGSIb3DQEBDAUA +A4IBAQAYh1HcdCE9nIrgJ7cz0C7M7PDmy14R3iJvm3WOnnL+5Nb+qh+cli3vA0p+ +rvSNb3I8QzvAP+u431yqqcau8vzY7qN7Q/aGNnwU4M309z/+3ri0ivCRlv79Q2R+ +/czSAaF9ffgZGclCKxO/WIu6pKJmBHaIkU4MiRTOok3JMrO66BQavHHxW/BBC5gA +CiIDEOUMsfnNkjcZ7Tvx5Dq2+UUTJnWvu6rvP3t3O9LEApE9GQDTF1w52z97GA1F +zZOFli9d31kWTz9RvdVFGD/tSo7oBmF0Ixa1DVBzJ0RHfxBdiSprhTEUxOipakyA +vGp4z7h/jnZymQyd/teRCBaho1+V +-----END CERTIFICATE----- diff --git a/scripts/linux/cert/blazor.zone.key b/scripts/linux/cert/blazor.zone.key new file mode 100644 index 00000000000..75db3bdad06 --- /dev/null +++ b/scripts/linux/cert/blazor.zone.key @@ -0,0 +1,27 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIEowIBAAKCAQEA59Js1o6csQdt1s4jeoXX9m3OywiqbWujzLvn1ZxFzzi/rZhJ +uJ98OjsrHhPvT8BC37VOgGDI2Ap46LYnivwUcGNMgVF3sNM0fIIhHlVex/HfdapD +KJrTd5GAZYIVqDedR8130ozmU/qWV7ROSrte6qs7jlnUGj9aKVp93AfQlYXmoMf7 +h5kUbnU+ZuwLspx8z6uvA9ci0RlPKHS2QkfFtMPa6qrbYG/8vx4Sf8x3TJM3HBB1 +0dS8OK75crzV9DDVHAfpcLJkoDlvU7CZbcjOt03Ei6UFi5G5Ap2paXJm4nQBMZCI +JMrB0GtDeH4qk2UW+o4t+wEJfVWDiiPxvjDwyQIDAQABAoIBADL7jx4cnQ890AU2 +rozKlLVIbvst+7U2v/5NsO3EgYHSPC1kWYo14O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swodCJRYTaJ8WMOrIuSijL9YPhN2xHDL29WZ2mcs7cDsmQ5iu87zAfO1e +aJGX4GhCWj1MiPfsVTiwYCOYlfUXfqbLF2KAHGVYocYsqv5ntuCl +-----END RSA PRIVATE KEY----- diff --git a/scripts/linux/cert/www.blazor.zone.cer b/scripts/linux/cert/www.blazor.zone.cer new file mode 100644 index 00000000000..d47fb00dc3e --- /dev/null +++ b/scripts/linux/cert/www.blazor.zone.cer @@ -0,0 +1,108 @@ +-----BEGIN CERTIFICATE----- +MIIGazCCBFOgAwIBAgIQFmSlOlWf3fG9FghtSJSnJjANBgkqhkiG9w0BAQwFADBL +MQswCQYDVQQGEwJBVDEQMA4GA1UEChMHWmVyb1NTTDEqMCgGA1UEAxMhWmVyb1NT +TCBSU0EgRG9tYWluIFNlY3VyZSBTaXRlIENBMB4XDTI0MTAyNjAwMDAwMFoXDTI1 +MDEyNDIzNTk1OVowGjEYMBYGA1UEAxMPd3d3LmJsYXpvci56b25lMIIBIjANBgkq +hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtyQdfUAnUiYFo9wTjsoMNmSoEwNZP5md +VLRkhDXHYeFjilKR9WcmEHlDXEgqiEP67PZ2Ms9kz/LL263SMP9DsTWQBYF236OH +V4nlwLtRjaFSGNacGyJMLyBYvpOL7ttqc2UQ/5+No+dGvR58QXCsyJSMr6O0jfNa +SHmcXA0k7f9fOVs+Ddcq682wZTPzXUkShncl+MGftLZgDK33qZ0vVHWMGvwNQhbp +Nlb7l/B8mnijqjKuLxLhkJ4lx40WBRgBBt1Fw2AitIO7rCLcGVVRs+/W5yHG5X6F +hVcicg5cLJLPZcPupLO+1ZEW864PtqtJgpZ2JWi5muzaSTrXz+nkEwIDAQABo4IC +ejCCAnYwHwYDVR0jBBgwFoAUyNl4aKLZGWjVPXLeXwo+3LWGhqYwHQYDVR0OBBYE +FPu+f+4/Wjv7w11Y6hVyjjTPeTXkMA4GA1UdDwEB/wQEAwIFoDAMBgNVHRMBAf8E +Aj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t +L0FBQUNlcnRpZmljYXRlU2VydmljZXMuY3JsMDQGCCsGAQUFBwEBBCgwJjAkBggr +BgEFBQcwAYYYaHR0cDovL29jc3AuY29tb2RvY2EuY29tMA0GCSqGSIb3DQEBDAUA +A4IBAQAYh1HcdCE9nIrgJ7cz0C7M7PDmy14R3iJvm3WOnnL+5Nb+qh+cli3vA0p+ +rvSNb3I8QzvAP+u431yqqcau8vzY7qN7Q/aGNnwU4M309z/+3ri0ivCRlv79Q2R+ +/czSAaF9ffgZGclCKxO/WIu6pKJmBHaIkU4MiRTOok3JMrO66BQavHHxW/BBC5gA +CiIDEOUMsfnNkjcZ7Tvx5Dq2+UUTJnWvu6rvP3t3O9LEApE9GQDTF1w52z97GA1F +zZOFli9d31kWTz9RvdVFGD/tSo7oBmF0Ixa1DVBzJ0RHfxBdiSprhTEUxOipakyA +vGp4z7h/jnZymQyd/teRCBaho1+V +-----END CERTIFICATE----- diff --git a/scripts/linux/cert/www.blazor.zone.key b/scripts/linux/cert/www.blazor.zone.key new file mode 100644 index 00000000000..4a7e506c343 --- /dev/null +++ b/scripts/linux/cert/www.blazor.zone.key @@ -0,0 +1,27 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIEpAIBAAKCAQEAtyQdfUAnUiYFo9wTjsoMNmSoEwNZP5mdVLRkhDXHYeFjilKR +9WcmEHlDXEgqiEP67PZ2Ms9kz/LL263SMP9DsTWQBYF236OHV4nlwLtRjaFSGNac +GyJMLyBYvpOL7ttqc2UQ/5+No+dGvR58QXCsyJSMr6O0jfNaSHmcXA0k7f9fOVs+ +Ddcq682wZTPzXUkShncl+MGftLZgDK33qZ0vVHWMGvwNQhbpNlb7l/B8mnijqjKu +LxLhkJ4lx40WBRgBBt1Fw2AitIO7rCLcGVVRs+/W5yHG5X6FhVcicg5cLJLPZcPu +pLO+1ZEW864PtqtJgpZ2JWi5muzaSTrXz+nkEwIDAQABAoIBAD4e+/m+RxgwWX1p +ayDmHBpfLju0yRMvshRHVEkcTNNAt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SCpbPk +rnzVPcFQ56IcAii66g7m+0Yx2Z0QZH+OGWUAZlAG4rajU7dw/S5snpuGp0r7GFK6 +JNYD0H2DKjGxVl8FaoquKXvuxJlnQZ009E29MoaxitkQxrnDeQ+bZw== +-----END RSA PRIVATE KEY----- diff --git a/scripts/linux/deploy.sh b/scripts/linux/deploy.sh new file mode 100644 index 00000000000..f80c0977645 --- /dev/null +++ b/scripts/linux/deploy.sh @@ -0,0 +1,37 @@ +#! /bin/bash + +echo "clean env" + +sudo rm -fr BootstrapBlazor + +sudo rm -fr /usr/local/ba/blazor + +echo "apt update" +sudo apt update + +echo "install git" +echo yes|sudo apt install git + +echo "install BootstrapBlazor" +sudo git clone https://gitee.com/LongbowEnterprise/BootstrapBlazor.git + +echo "make directory BA/Blazor" +sudo mkdir /usr/local/ba +sudo mkdir /usr/local/ba/blazor + +echo "copy scripts" +sudo cp BootstrapBlazor/scripts/linux/deploy-blazor.sh deploy-blazor.sh +sudo cp BootstrapBlazor/scripts/linux/ba.blazor.service /usr/lib/systemd/system/ba.blazor.service + +echo "install ba.blazor.service" +sudo systemctl enable ba.blazor + +echo "install nginx" +echo yes|sudo apt install nginx + +echo "copy nginx config" +sudo cp BootstrapBlazor/scripts/linux/nginx.conf /etc/nginx/ + +echo "copy cert" +sudo mkdir /etc/nginx/cert +sudo cp BootstrapBlazor/scripts/linux/cert/* /etc/nginx/cert/ diff --git a/scripts/linux/nginx.conf b/scripts/linux/nginx.conf index 3ba8261e481..3b3af8eaa51 100644 --- a/scripts/linux/nginx.conf +++ b/scripts/linux/nginx.conf @@ -16,7 +16,7 @@ http { server { listen 80; server_name blazor.zone; - client_max_body_size 20m; + client_max_body_size 20m; rewrite ^(.*)$ https://www.blazor.zone$1 redirect; proxy_redirect off; proxy_set_header Host $host; @@ -28,8 +28,8 @@ http { listen 443 ssl; server_name blazor.zone; rewrite ^(.*)$ https://www.blazor.zone$1 redirect; - ssl_certificate ./cert/blazor.zone.cer; - ssl_certificate_key ./cert/blazor.zone.key; + ssl_certificate cert/blazor.zone.cer; + ssl_certificate_key cert/blazor.zone.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; ssl_ciphers HIGH:!aNULL:!MD5; @@ -44,7 +44,7 @@ http { server { listen 80; server_name www.blazor.zone; - client_max_body_size 20m; + client_max_body_size 20m; rewrite ^(.*)$ https://$host$1 redirect; proxy_redirect off; proxy_set_header Host $host; @@ -55,8 +55,8 @@ http { server { listen 443 ssl; server_name www.blazor.zone; - ssl_certificate ./cert/www.blazor.zone.cer; - ssl_certificate_key ./cert/www.blazor.zone.key; + ssl_certificate cert/www.blazor.zone.cer; + ssl_certificate_key cert/www.blazor.zone.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; ssl_ciphers HIGH:!aNULL:!MD5; diff --git a/scripts/linux/remove.sh b/scripts/linux/remove.sh new file mode 100644 index 00000000000..25d478cbc31 --- /dev/null +++ b/scripts/linux/remove.sh @@ -0,0 +1,5 @@ +#! /bin/bash + +sudo rm -fr BootstrapBlazor + +sudo rm -fr /usr/local/ba