Browse Source

[WHAT] 增加SSL設定

Dev
berlin-tzen 2 years ago
parent
commit
fb3cd6087d
  1. 35
      FrontEnd/SSL/cert_showeasy_com.crt
  2. 29
      FrontEnd/SSL/key_showeasy_com.key
  3. 11
      FrontEnd/nuxt.config.js

35
FrontEnd/SSL/cert_showeasy_com.crt

@ -0,0 +1,35 @@
-----BEGIN CERTIFICATE-----
MIIGJjCCBQ6gAwIBAgIQB0z82EsXYqQVuCsVoNulnzANBgkqhkiG9w0BAQsFADBg
MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
d3cuZGlnaWNlcnQuY29tMR8wHQYDVQQDExZSYXBpZFNTTCBUTFMgUlNBIENBIEcx
MB4XDTIzMDMxNzAwMDAwMFoXDTIzMDgwMjIzNTk1OVowGTEXMBUGA1UEAwwOKi5z
aG93ZWFzeS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC3NllP
wSSuM85scXrA/GIYZPHdxOst6nt9+gxOIdgZZUVmIs+xIrZh8SyHVNto+jENQOw0
EmpyzxvI5A+GHIhl+FgR11H8cHfMEJS9v/Mj3ufYhhV9HAgnyHiaYqIOnfCYSShq
K4nL97OU/mUGdIdG7lzu0L7gfdZbfCsmNmqE+BZE/LDT4on0AG/PUp/S5mtYd0TP
wnDHnv1dCR32WsZgM766w78GOVLlQoj3wglVtlhVsox1GRFojnJYQLgoO1PSQcLf
3gEDkKIcDMQXRG6+haqWSJ85UCILmaA6BgBmtDpSVbiysMi02kU9N+O4sv6ishcK
IOQgpkU1DVasQbSbAgMBAAGjggMhMIIDHTAfBgNVHSMEGDAWgBQM22yCSQ9KZwq4
FO56xEhSiOtWODAdBgNVHQ4EFgQUhBBXevtH0v+YO0YeKBNTN8TpecQwJwYDVR0R
BCAwHoIOKi5zaG93ZWFzeS5jb22CDHNob3dlYXN5LmNvbTAOBgNVHQ8BAf8EBAMC
BaAwHQYDVR0lBBYwFAYIKwY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jj94W6R4D2Dpd81i6JT958cXe
cufsi6d9QP6f345lPgAOmyi2qLajutO2V5+t+PePcP2gu9as7jW82EOXmW7A8GTk
toS/AVKl6WUMBB4LEZynx644mwKBgQC5GZ+OrhEXmu9B4mPS5WMBeFXRlTIEOR9B
XH0EdXTHSJiPye4KsczQtTsZIl9cMMEoPUDPm7SCvxZXLfVSYSXAEpTXM5PZWcvR
RWdjojS+o4VgR2WnXHNVigw1XAI0wypFrDF7sLgCWqv9G8VsIGrEl/lOmLNyANwj
7QFeonw0AQKBgQCOELO0uu/mUo0zsena9wbKOjTDnLOAmgjtNBM4Kyt3YyRjHUvt
45gHFkil35udLMZvUWQoGK++bfPQ4wUVW0c9EG+vgilAaY7kpIZTqhqBjsYXtj/N
FAOq/tON0MPiwm3yNvxaDMaY0KWP9zgaI1r53DwCWYEV45kUi6NRTlsX0QKBgFY1
9PbDY/qWkvEgvFWxuRcqMO5Yit8kq8YJicDV4/odedEev9wDS925Szk9pSSPIKfZ
P6JyZvSug30/To9759U50lEZGLeW9zMVHD5vghl4l9pr5pC4oo8oqN8BZ5WjgMDK
npF5kXqnOIu+r4jY4GGIVvmgbZOfiujArm6hRzABAoGAEyu+TP9CoJOeEIJxEPO/
13Xee9f+to7SjmiTWDe3JBas5Wk6yFYBRdGLArZ3lQjb+UxG/EFUELTndDc3iYC8
pa3fIzoWP0KJojH6XMmG115xSatNcJW+oe42z0OxP8QEK/RncA0gCfmPPYS+BBwI
buldUq8soj1REnG9MiS6iqA=
-----END PRIVATE KEY-----

11
FrontEnd/nuxt.config.js

@ -1,4 +1,6 @@
import colors from "vuetify/es5/util/colors";
import path from 'path';
import fs from 'fs';
export default {
// Disable server-side rendering: https://go.nuxtjs.dev/ssr-mode
@ -130,10 +132,17 @@ export default {
proxy: true,
// prefix: '/api'
},
server: {
https: {
key: fs.readFileSync(path.resolve(__dirname, 'SSL/key_showeasy_com.key')),
cert: fs.readFileSync(path.resolve(__dirname, 'SSL/cert_showeasy_com.crt')),
}
},
proxy: {
'/trending': {
// target: 'http://www.origtek.com:3002',// 服務地址
target: 'http://localhost:3466',// 服務地址
target: 'https://showeasy.com:5000',// API 正式機
// target: 'http://showeasy.com:3000',// API 測式機 (無SSL)
pathRewrite: {
'^/trending': '/'
},

Loading…
Cancel
Save