Skip to content

Commit

Permalink
Automatic release v4.0.x-20241015-1
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienbeau committed Oct 15, 2024
1 parent 982be7f commit aa09e14
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
10 changes: 5 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
## v4.0.x-20241010
## v4.0.x-20241015

* Big update the project, use native steam version (not a fork anymore)
* Broken deprecated old syntax have been removed
see: https://github.com/shopinvader/locomotive-shopinvader/commit/335f3cdcba192989af65d7b5056a6376e055ec07
* Following Variable have changed
- STORE_ASSET_IN_S3 not needed anymore (duplicated information), just configure your bucket and it will use it
- LOCOMOTIVE_BACKOFFICE_DOMAIN => you can add here the main domain of you engine
* Note, as rails have been updated, now the domain that locomotive respond is filtered on the list of domain
that exist in the database and a cache of 2 minute exists so when you add a new site, please wait 2 minutes max
see here: https://github.com/shopinvader/docker-locomotive-shopinvader/blob/70dc0b2dec31d767904690c1eb0752dd172e1865/shopinvader/config/application.rb#L44
* Rails 7 filter the domain available
- the domain that locomotive respond is filtered on the list of domain that exist in the database and a cache of 2 minute exists so when you add a new site, please wait 2 minutes max
see here: https://github.com/shopinvader/docker-locomotive-shopinvader/blob/70dc0b2dec31d767904690c1eb0752dd172e1865/shopinvader/config/application.rb#L44
- ALLOWED_DOMAIN => you can add here additionnal domain that you want to allow


## v4.0.x-20201211
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ Otherwise you'll have to change the workspace volume.

## Locomotive configuration

### ALLOWED_HOSTS

If you want to reach the server with a domain that is not in the list of existing website on your locomotive
you can allow specific domain like this:

```
ALLOWED_HOSTS=foo1.exemple.org,10.10.10.82:3000,localhost:3000
```

### LOCOMOTIVE_ENABLE_REGISTRATION

```
Expand Down
5 changes: 4 additions & 1 deletion shopinvader/config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,8 @@
config.logger = ActiveSupport::TaggedLogging.new(logger)
end

config.hosts << ENV["LOCOMOTIVE_BACKOFFICE_DOMAIN"]
if ENV["ALLOWED_HOSTS"].present?
config.hosts += ENV["ALLOWED_HOSTS"].split(",")
end

end

0 comments on commit aa09e14

Please sign in to comment.