Remove proxy container and prepare configuration for host proxy#56
Open
krzysdz wants to merge 1 commit into
Open
Remove proxy container and prepare configuration for host proxy#56krzysdz wants to merge 1 commit into
krzysdz wants to merge 1 commit into
Conversation
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Docker-based proxy is gone and with it Windows compatibility (of the
prodprofile). Now proxy must be running on the host system, which as an upside means that if you already had a proxy, there's only one now.The app listens on a unix socket
/run/gunicorn/gunicorn.sock(/run/gunicornis a bind mount).Installation/migration instructions
The installation can be done using a script which generates configuration files and installs them in the nginx conf directory, but some manual work is required.
1.
prod/config.envchangesThe setup script requires initial configuration or changes to
prod/config.env. There are 2 new variables that have to be set in this file:For example with domain openroboticplatform.com and certificates from Let's Encrypt,
prod/config.envshould look like this:2. Nginx config file generation and configuration
prod/setup-proxy.shwill generate a configuration fileprod/nginx/conf/orp.confand try to symlink it (along with other required files) to the nginx directory. Runprod/setup-proxy.sh -hfor more information about its options. On Debian/Ubuntu the easiest way to use it is:The script will use
sudoif symlinking or copying will fail.3. Remaining nginx configuration
The installed configuration starts only a HTTPS server. If you don't have one, please create a configuration file (e.g.
/etc/nginx/sites-enabled/https-redir.confor/etc/nginx/conf.d/https-redir.conf) with a simple server:4. Remember to reload nginx configuration