Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A terminal application provide proxy static server web

NotificationsYou must be signed in to change notification settings

anthonyli/proxy-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

====

nodejs开发的proxy服务,用于本地启动静态web服务

  Usage: pss [command]  命令:    init      初始化proxy配置    config    修改proxy配置    start     启动本地web服务  Options:    -v, --version  显示版本号      -h, --help     显示帮助信息

安装

npm i -g @tntd/proxy-server 如果没安装可以直接git clone 仓库npm link 完就可以使用 pss 命令

使用

进入项目目录

pss init修改 proxy.json 配置pss start

proxy.json 说明

{"name":"proxy-static-server", // 名称"port": 3000, // 端口号"staticDir":"./static", // 静态资源根目录"index":"index", // 首页 模板(html)的名称"ext":"html", //首页 模板(html) 后缀名"templateDir":"./static", //  模板(html)目录位置"proxyTable": { // 和 http-proxy-middleware 的配置一致"/api": {"target":"http://127.0.0.1:8080","changeOrigin": true,"pathRewrite": {"^/api":"/api"}},}}

About

A terminal application provide proxy static server web

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2026 Movatter.jp