Skip to content

Commit

Permalink
Merge pull request #56 from vault12/v3-config-tweaks
Browse files Browse the repository at this point in the history
V3 config tweaks
  • Loading branch information
pavlo-liapin authored Mar 6, 2024
2 parents 1e666aa + c5770e0 commit 53b1621
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ In a terminal, navigate to the directory in which you'd like to install Zax and

```Shell
# get the source
git clone git@github.com:vault12/zax.git
git clone https://github.com/vault12/zax.git

# create the gemset
cd zax
Expand All @@ -114,9 +114,6 @@ rvm gemset use zax
# run the installation script
gem install bundler
bundle install
mkdir -p shared/log
mkdir -p shared/pids
mkdir -p shared/sockets
```

If `bundle install` command fails with a message for libxml2 or Nokogiri, see the [Troubleshooting](#troubleshooting) section.
Expand Down
10 changes: 7 additions & 3 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.

# Specify the host name for the production environment.
# See https://guides.rubyonrails.org/configuring.html#config-hosts for more information.
# config.hosts << "zax.example.com"

# --- Relay default configuration START ---
config.x.relay.difficulty = 2 # 1...255 : require number of leading 0 bits in handshake

Expand Down Expand Up @@ -55,9 +59,9 @@
# or in config/master.key. This key is used to decrypt credentials (and other encrypted files).
# config.require_master_key = true

# Disable serving static files from the `/public` folder by default since
# Apache or NGINX already handles this.
config.public_file_server.enabled = ENV["RAILS_SERVE_STATIC_FILES"].present?
# To disable serving Zax Dashboard or other static files from the `/public` folder,
# or to handle this on Apache or NGINX level, uncomment the following line
# config.public_file_server.enabled = ENV["RAILS_SERVE_STATIC_FILES"].present?

# Compress CSS using a preprocessor.
# config.assets.css_compressor = :sass
Expand Down

0 comments on commit 53b1621

Please sign in to comment.