Skip to content

Fix SSL configuration paths - #241

Open
ydah wants to merge 1 commit into
bigcommerce:mainfrom
ydah:fix/ssl-path-join
Open

ydah wants to merge 1 commit into
bigcommerce:mainfrom
ydah:fix/ssl-path-join

Conversation

@ydah

@ydah ydah commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

What? Why?

When a Rails root path is configured, root_path has its trailing slash removed before the SSL paths are built. The certificate and key paths were then concatenated without a path separator, resulting in paths such as:

/appconfig/ssl/production.crt

This fixes the SSL certificate and key path construction so they correctly resolve to:

/app/config/ssl/production.crt
/app/config/ssl/production.key

Relative SSL paths are preserved when no Rails root path is configured.

How was it tested?

Added configuration specs covering:

  • SSL paths with a Rails root path
  • Relative SSL paths without a Rails root path

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant