Skip to content

Can a container make an https request to whatever in orb is providing the SSL proxy for web containers? #982

Answered by slinorb
pjv asked this question in Q&A
Discussion options

You must be logged in to vote

The OrbStack tls proxy can not be used by the containers for now. The feature will be implemented later.
Here is a workaround for your setup:

  • Save and run the following script to create a self-signed certificate and ssl conf file for nginx
#!/usr/bin/env bash

if [[ -f .env ]]; then
    source .env
fi

mkdir -p ssl

openssl req -subj "/CN=${PROJECT_BASE_URL##*/}" \
    -x509 -newkey rsa:4096 -nodes -days 365 \
    -keyout ssl/key.pem -out ssl/cert.pem \
    -days 365

cat > ssl.conf <<EOF
server {
  listen 443 ssl;

  ssl_certificate /etc/nginx/ssl/cert.pem;
  ssl_certificate_key /etc/nginx/ssl/key.pem;

  root /var/www/html;
  include preset.conf;
  include defaults.conf;
}
EOF
  • Append…

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@slinorb
Comment options

@pjv
Comment options

@pjv
Comment options

@slinorb
Comment options

Comment options

You must be logged in to vote
5 replies
@pjv
Comment options

@pjv
Comment options

@slinorb
Comment options

Answer selected by pjv
@pjv
Comment options

@pjv
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants