diff --git a/Dockerfile b/Dockerfile index 30e0f1e..db4c6db 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,7 +34,7 @@ RUN \ FROM nginx:alpine AS runner -COPY --from=builder /app/dist/ /usr/share/nginx/html +COPY --from=builder /app/dist/ /var/www/html COPY --from=builder /app/nginx.conf /etc/nginx/nginx.conf EXPOSE 80 diff --git a/nginx.conf b/nginx.conf index d028117..0e0ac5c 100644 --- a/nginx.conf +++ b/nginx.conf @@ -16,6 +16,8 @@ http { server_name _; # Listen on all hostnames listen 80; # Listen on port 80 + root /var/www/html; # Serve files from /var/www/html + # Gzip gzip on; gzip_disable "msie6"; diff --git a/webpack.config.js b/webpack.config.js index 21a215c..765cf38 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -4,7 +4,7 @@ const { UserscriptPlugin } = require('webpack-userscript'); module.exports = { entry: './src/index.ts', - mode: 'production', + mode: process.env.NODE_ENV || 'development', module: { rules: [ { @@ -20,13 +20,13 @@ module.exports = { plugins: [ new UserscriptPlugin({ metajs: false, + downloadBaseURL: 'https://ssu.fascinated.cc/scripts', + updateBaseURL: 'https://ssu.fascinated.cc/scripts', headers: { name: "ScoreSaber Utils", author: "fascinated7 (discord)", "run-at": "document-end", match: "https://scoresaber.com/*", - updateURL: "https://ssu.fascinated.cc/scripts/bundle.user.js", - downloadURL: "https://ssu.fascinated.cc/scripts/bundle.user.js", version: `1.0.0-${process.env.GIT_REV || 'dev'}`, } })