Comments (2)
What's your environment like? I've only tested on Debian Linux + Nginx. If you're on a Windows server, I'd suggest using Microsoft's NuGet.Server instead.
For a Debian-based distro (including Ubuntu), installation is something along the lines of what I've written below. Installation using other Linux distributions will vary but it should be pretty similar.
1 - Copy app to your server, you could do a Git clone on the server or add it as a Git submodule if adding to a site that's already managed via Git:
cd /var/www
git clone https://github.com/Daniel15/simple-nuget-server.git
# Make db and packages directories writable
chown www-data:www-data db packagefiles
chmod 0770 db packagefiles
2 - Copy nginx.conf.example to /etc/nginx/sites-available and modify it for your environment:
- Change
example.com
to your domain name - Change
/var/www/simple-nuget-server/
to the checkout directory - Change "hhvm" to the name of a PHP upstream in your Nginx config. This can be regular PHP 5.4+ or HHVM.
- If hosting as part of another site, prefix everything with a subdirectory and combine the config with your existing site's config (see ReactJS.NET config at the end of this comment)
3 - Edit inc/config.php
and change ChangeThisKey
to a randomly-generated string
4 - Enable the site (if creating a new site)
ln -s /etc/nginx/sites-available/nuget /etc/nginx/sites-enabled/nuget
/etc/init.d/nginx reload
5 - Set the API key and test it out. I test using nuget.exe (which is required for pushing)
nuget.exe setApiKey -Source http://example.com/ ChangeThisKey
nuget.exe push Foo.nupkg -Source http://example.com/
(if using Mono, run mono nuget.exe
instead)
I've got a live installation for ReactJS.NET at http://reactjs.net/packages/. You can see its Nginx configuration at https://github.com/reactjs/React.NET/blob/master/site/nginx.conf
from simple-nuget-server.
Added the above instructions to the readme, let me know if you need any further assistance. Thanks!
from simple-nuget-server.
Related Issues (20)
- FeedWriter returns invalid download link HOT 5
- Is ngx_http_dav_module required? HOT 2
- nuget push replies Failed to process request. 'No package file' HOT 2
- Provide nginx example to run at subdir (example.com/nuget) HOT 2
- allow htaccess HOT 1
- Apache config would be nice HOT 12
- Please provide symbole pack support
- Automated docker builds
- Implement paging HOT 2
- Has this been tested to work with Chocoloatey? HOT 5
- What does HOT 2
- What does "Change "php" to the name of a PHP upstream in your Nginx config." mean? HOT 2
- "Root element is missing" Error; SQLite3 file not being created? HOT 5
- Frameworks without dependencies are not saved to the database and don't appear with the NuGet client or Visual Studio HOT 1
- Nothing is pushed, no error even if i specify wrong key
- Failed to process request. 'ZipArchive::open(): Empty string as source'. The remote server returned an error: (500) ZipArchive::open(): Empty string as source.
- Not seeing packages in the browser HOT 1
- SimpleXMLElement::addChild(): unterminated entity referenc HOT 1
- Configurable username and password for DBO HOT 3
- FeedWriter does not honor actual (or proxied) protocol HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simple-nuget-server.