Skip to main content

Expose a mosek license via a nginx server

Project description

Mosek License Server

Using a nginx image we expose a Mosek license on a server to be accessible from various research machines without sharing the actual license file in the underlying repositories.

This repository serves two purposes. It exposes the server but it is also the home for a little Python package to inject the license into your programs.

License server

Copy your license file into folder

Copy the license file you have received (from Mosek) into the license folder. Name it `mosek'.

Start the nginx server

Share the license folder (after you have copied your personal Mosek license into) via

docker run --name mosek -v $PWD/license:/usr/share/nginx/html:ro -p 8080:80 -d nginx

The license will now be exposed via http://localhost:8080

As an alternative you can run the script

./license_server.sh

The mosek_license module

Install via

pip install mosek-license-server

and then

from mosek_license import license

# It's important to upsert the license before you import mosek
license.upsert()

# only know import mosek
import mosek

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mosek_license_server-0.0.6.tar.gz (2.0 kB view hashes)

Uploaded Source

Built Distribution

mosek_license_server-0.0.6-py3-none-any.whl (2.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page