Code Monkey home page Code Monkey logo

baget6's Introduction

BaGet

一个轻量级Nuget服务器

docker部署

修改配置文件

目录:src\BaGet\appsettings.json
ApiKey:推送包使用的Api Key,默认是123456
AllowPackageOverwrites:是否允许替换现有包,true表示允许替换
使用sqlite作为数据库,文件路径:/data/baget/data/baget.db
包存储路径:/data/baget/data/packages/

{
  "ApiKey": "123456",
  "PackageDeletionBehavior": "Unlist",
  "AllowPackageOverwrites": true,
  "Database": {
    "Type": "Sqlite",
    "ConnectionString": "Data Source=/data/baget/data/baget.db"
  },
  "Storage": {
    "Type": "FileSystem",
    "Path": "/data/baget/data/packages/"
  },
  "Search": {
    "Type": "Database"
  },
  "Mirror": {
    "Enabled": false,
    // Uncomment this to use the NuGet v2 protocol
    //"Legacy": true,
    "PackageSource": "https://api.nuget.org/v3/index.json"
  },
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft.AspNetCore": "Warning"
    }
  },
  "AllowedHosts": "*"
}

挂载目录:/data/baget/data

docker build -t baget:latest .
docker run -d -p 8085:80 -p 8086:443 --name baget -v /data/baget/data:/data/baget/data baget:latest

baget6's People

Contributors

leafkevin avatar fengtc avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.