
Security News
The Code You Didn't Write Is Still Yours to Defend
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.
vue-cli-plugin-docker-nginx-diff-proxy
Advanced tools
vue-cli 3.0 plugin that sets up a nginx docker container that serves your vue app
This plug-in is to build a docker image of multiple environment reverse proxy
This is a vue-cli-plugin that adds a minimal docker deployment (~19MB + static files) using nginx to serve your vue-app
prepare: you must have a 'build-proxy' Scripts in your package.json , and 'build-proxy' can build your app to request <proxy_prefix>
vue add vue-cli-plugin-docker-nginx-diff-proxy
This will automatically add all the files needed to your existing vue-cli project
in your package.json, will add some scripts:
Build development environment
Build test environment
Build production environment
Build development environment and Start with 3000 port
Build test environment and Start with 3000 port
Build production environment and Start with 3000 port
a nginx folder will be added to the root, It contains four files
Configuration files for nginx in development environment
Configuration files for nginx in test environment
Configuration files for nginx in production environment
_Gzip is on by default,You can close it if you don't need it
in your vue.conf.js,A dockerNginxProxy property will be added to pluginOptions
Prefix for reverse proxy, default is '/proxy'
Proxy address of different environment, you can add environment at will
a Dockerfile will be added to the root
Dynamically load nginx configuration according to Env parameters
npm run docker-run-<ENV>
This will build a docker container and run it on port 3000. If you want to run it on different port change the run script in your package.json to
"docker-run-<ENV>": "docker run docker-build-<ENV> && docker run -d -p <PORT>:80 <your project>-<ENV>"
Please make sure to have docker installed and running on your machine.
You will find that the three nginx configuration files generated automatically are the same, This is to increase flexibility,You can add and modify any configuration at will in different environments. You can also add templates to support more environments.
FAQs
vue-cli 3.0 plugin that sets up a nginx docker container that serves your vue app
We found that vue-cli-plugin-docker-nginx-diff-proxy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.