Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V3 config tweaks #56

Merged
merged 2 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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