add docker

This commit is contained in:
RainSun 2020-04-10 20:45:25 +08:00
parent d99f323ab1
commit f0b5d6d5ec
4 changed files with 25 additions and 5 deletions

3
Dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM nginx
COPY dist/ /usr/share/nginx/html/
COPY nginx/default.conf /etc/nginx/conf.d/default.conf

17
nginx/default.conf Normal file
View File

@ -0,0 +1,17 @@
server {
listen 80;
server_name localhost;
access_log /var/log/nginx/host.access.log main;
error_log /var/log/nginx/error.log error;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}

View File

@ -6,16 +6,16 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>曳光</title>
<title>曳光控制台</title>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon-precomposed" href="<%= BASE_URL %>favicon.ico">
<!-- 标题 -->
<meta itemprop="name" content="曳光控制台" />
<!-- 描述 -->
<meta itemprop="description" content="负责进行曳光内容审核" />
<meta itemprop="description" content="进行曳光内容审核" />
<!-- 图片 -->
<meta itemprop="image" content="http://canary.moe/img/canary.png" />
<meta itemprop="image" content="https://tracer.lacus.site/img/icons/android-chrome-512x512.png" />
<script>
try {
console.log('%cRainSun Copyright \xa9 2019-%s',

View File

@ -1,8 +1,8 @@
import axios from 'axios'
export const api = axios.create({
baseURL: 'https://yg.canary.moe/v1/user/',
// baseURL: window.location.origin + '/api/',
// baseURL: 'https://yg.lacus.site/v1/user/',
baseURL: window.location.origin + '/v1/user/',
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json',