Projects STRLCPY SeaMoon Commits f6e1ac76
🤬
  • ■ ■ ■ ■
    .github/workflows/build.yml
    skipped 4 lines
    5 5   tags:
    6 6   - "*"
    7 7   pull_request:
    8  - branches: [ main ]
     8 + branches: [ "main" ]
    9 9   
    10 10  jobs:
    11 11   build:
    skipped 11 lines
  • ■ ■ ■ ■ ■ ■
    .github/workflows/package.yaml
     1 +name: Package
     2 +on:
     3 + push:
     4 + tags:
     5 + - "*"
     6 + 
     7 +jobs:
     8 + package-docker:
     9 + name: package-docker
     10 + runs-on: ubuntu-20.04
     11 + if: startsWith(github.ref, 'refs/tags/')
     12 + steps:
     13 + - uses: actions/checkout@v3
     14 + - uses: docker/setup-qemu-action@v2
     15 + - uses: docker/setup-buildx-action@v2
     16 + - uses: docker/login-action@v2
     17 + with:
     18 + username: ${{ secrets.DOCKERHUB_USERNAME }}
     19 + password: ${{ secrets.DOCKERHUB_TOKEN }}
     20 + - uses: docker/build-push-action@v3
     21 + with:
     22 + push: true
     23 + platforms: |
     24 + linux/amd64
     25 + linux/arm64
     26 + linux/386
     27 + tags: |
     28 + dvkunion/seamoon-client:latest
     29 + dvkunion/seamoon-client:${{github.ref_name}}
     30 + build-args: |
     31 + VERSION=${{github.ref_name}}
     32 + context: ./
  • ■ ■ ■ ■ ■ ■
    Dockerfile
     1 +# build stage
     2 +FROM golang:alpine AS build
     3 +ARG VERSION
     4 +COPY . /src
     5 +WORKDIR /src
     6 +ENV CGO_ENABLED 0
     7 +ENV VERSION=${VERSION}
     8 +RUN go build --ldflags "-s -w -X github.com/DVKunion/SeaMoon/pkg/consts.Version=${VERSION}" -o /tmp/client cmd/client.go
     9 +RUN chmod +x /tmp/client
     10 +# run stage
     11 +FROM scratch
     12 +LABEL maintainer="[email protected]"
     13 +WORKDIR /app
     14 +COPY --from=build /tmp/client /app/client
     15 +EXPOSE 7777 1080 9000
     16 +ENTRYPOINT ["/app/client"]
  • ■ ■ ■ ■ ■ ■
    docs/tech/00.定位与特性/01.FEATURE.md
    1  ----
    2  -title: 月海的特性
    3  -date: 2022-09-28 00:27:13
    4  -permalink: /tech/feature/
    5  -article: false
    6  ----
    7  - 
    8  -# FEATURE
    9  - 
    10  -## 1.1.0
    11  - 
    12  -+ 修复了HTTP连接的一些bug,并使用更活跃的客户端代理库 `martian` 代替 `goproxy`
    13  -+ 重构了客户端结构,提供了一个简易的B/S架构的控制管理端
    14  -+ 修复了SOCKS链接不断开导致的函数计费超时问题。
    15  -+ 增加了Controller管理
    16  - 
    17  -## 1.0.0
    18  - 
    19  -+ 重新实现了 https://github.com/shimmeris/SCFProxy 大佬原有的网络功能: HTTP代理、SOCKs5代理
    20  -+ 优化了 SCFProxy 的部分机制:比如socks5的连接模式、socks5 15分钟超时的问题等。
  • ■ ■ ■ ■ ■ ■
    docs/tech/00.定位与特性/01.feature.md
    skipped 6 lines
    7 7   
    8 8  # FEATURE
    9 9   
    10  -## 1.1.0
     10 +## SeaMoon 1.1.1
     11 + 
     12 +### ❤️ What's New
     13 +* 🔧 fix(websocket): 修正了websocket在超出32768slice导致的panic。 (#4)
     14 +* 🔧 fix(websocket): 修整了websocket在close时写入message导致的panic。 (#4)
     15 +* 🔧 fix(websocket): 忽略了大量websocket链接导致的1006 abnormal close报错。 (#4)
     16 +* 🔧 fix(s.yaml): 修整了serverless-devs工具编排文件,目前可以通过serverless-devs工具`s deploy`一件部署至阿里云。 (#4)
     17 +* 🔧 fix(ci): 修整了 go-releaser ci 配置 (#3)
     18 +* 🔧 fix(docs): 更新了 README.md 较为过时的使用手册。
     19 + 
     20 +### 🌈 Small Talk
     21 +> Hi, 各位,SeaMoon成功挤入2023 Kcon兵器谱,使得整个项目获得了一批关注;在此感谢大家对SeaMoon项目的浓厚兴趣与支持,谢谢各位🙏
     22 +> 由于工作原因,以及个人的一些想法枯竭,项目于去年创建,直到现在目前也仅支持了阿里云一个demo QAQ,因此整体给人并不是一个较为完善的使用效果。
     23 +> 1.1.1 版本后,我会尽量保证一些活跃性质的更新,以及一些比较有意思的想法demo迭代。
     24 +> 也欢迎对serverless感兴趣的安全小伙伴留言来交个朋友~
     25 + 
     26 +[**Full Changelog**](https://github.com/DVKunion/SeaMoon/compare/1.1.0...1.1.1)
     27 +* bc209a9 doc: update README.md
     28 +* a2e7360 fix: go-releaser ci config (#3)
     29 +* 8f51e63 fix: readme.md
     30 +* fe658ff fix: some websocket error optimization (#4)
     31 +* c316527 hotfix: some docs and code format
     32 + 
     33 + 
     34 + 
     35 +## SeaMoon 1.1.0
    11 36   
    12 37  + 修复了HTTP连接的一些bug,并使用更活跃的客户端代理库 `martian` 代替 `goproxy`
    13 38  + 重构了客户端结构,提供了一个简易的B/S架构的控制管理端
    14 39  + 修复了SOCKS链接不断开导致的函数计费超时问题。
    15 40  + 增加了Controller管理
    16 41   
    17  -## 1.0.0
     42 +## SeaMoon 1.0.0
    18 43   
    19 44  + 重新实现了 https://github.com/shimmeris/SCFProxy 大佬原有的网络功能: HTTP代理、SOCKs5代理
    20 45  + 优化了 SCFProxy 的部分机制:比如socks5的连接模式、socks5 15分钟超时的问题等。
  • ■ ■ ■ ■ ■
    manifest/Dockerfile
    1  -# Todo Docker Client
  • ■ ■ ■ ■ ■ ■
    pkg/client/config.go
    skipped 1 lines
    2 2   
    3 3  import (
    4 4   "bytes"
     5 + "os"
     6 + 
    5 7   "github.com/BurntSushi/toml"
    6  - "github.com/DVKunion/SeaMoon/pkg/consts"
    7 8   log "github.com/sirupsen/logrus"
    8  - "os"
     9 + 
     10 + "github.com/DVKunion/SeaMoon/pkg/consts"
    9 11  )
    10 12   
    11 13  type clientConfig struct {
    skipped 31 lines
    43 45   ProxyAddr: []string{""},
    44 46   Control: controlConfig{
    45 47   // is dangerous to open Control page for everyone, do not set value like: ":7777" / "0.0.0.0:7777"
    46  - ConfigAddr: "127.0.0.1:7777",
     48 + ConfigAddr: ":7777",
    47 49   LogPath: "web.log",
    48 50   },
    49 51   Http: proxyConfig{
    skipped 46 lines
  • ■ ■ ■ ■ ■ ■
    s.yaml
    skipped 22 lines
    23 23   
    24 24  services:
    25 25   SeaMoon-FC-HTTP-Proxy:
    26  - component: devscomp/fc
     26 + component: fc
    27 27   props:
    28 28   region: ${vars.region}
    29 29   service: ${vars.service}
    skipped 35 lines
    65 65   - DELETE
    66 66   - OPTIONS
    67 67   SeaMoon-FC-Socks-Proxy:
    68  - component: devscomp/fc
     68 + component: fc
    69 69   props:
    70 70   region: ${vars.region}
    71 71   service: ${vars.service}
    skipped 35 lines
Please wait...
Page is in error, reload to recover