diff --git a/.env b/.env new file mode 100644 index 0000000..ac7621c --- /dev/null +++ b/.env @@ -0,0 +1,2 @@ +# API配置 +VUE_APP_API_BASE_URL=http://localhost:8000 \ No newline at end of file diff --git a/.gitignore b/.gitignore index e20d79b..6c4b514 100644 --- a/.gitignore +++ b/.gitignore @@ -7,11 +7,6 @@ disk/ # 常见的需要忽略的文件 .DS_Store node_modules/ -.env -.env.local -.env.development.local -.env.test.local -.env.production.local npm-debug.log* yarn-debug.log* yarn-error.log* diff --git a/backend/.env b/backend/.env new file mode 100644 index 0000000..c2c347a --- /dev/null +++ b/backend/.env @@ -0,0 +1,3 @@ +AWS_ACCESS_KEY_ID=AKIAVIOZF67K6HNCUJ5Y +AWS_SECRET_ACCESS_KEY=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 +AWS_DEFAULT_REGION=us-east-1 \ No newline at end of file diff --git a/frontend/.env.production b/frontend/.env.production index fb33d98..ffb0908 100644 --- a/frontend/.env.production +++ b/frontend/.env.production @@ -1,2 +1,2 @@ # 生产环境API配置 -VUE_APP_API_BASE_URL=http://127.0.0.1:8000 \ No newline at end of file +VUE_APP_API_BASE_URL=http://calc.buddyscloud.com:8000 \ No newline at end of file diff --git a/frontend/dist.zip b/frontend/dist.zip index c8c1ddb..e6ff5e7 100644 Binary files a/frontend/dist.zip and b/frontend/dist.zip differ diff --git a/frontend/src/views/AwsSearchDiscount.vue b/frontend/src/views/AwsSearchDiscount.vue index 7686e46..53ac071 100644 --- a/frontend/src/views/AwsSearchDiscount.vue +++ b/frontend/src/views/AwsSearchDiscount.vue @@ -431,8 +431,8 @@ region: 'us-east-1', disk_type: 'gp3', operating_system: 'Linux', // 默认Linux - monthly_discount: 0.8, // 默认80%,即8折 - yearly_discount: 0.6 // 默认60%,即6折 + monthly_discount: 0.95, // 默认80%,即8折 + yearly_discount: 0.85 // 默认60%,即6折 }, regions: [], searchResults: [],