Skip to content

Commit

Permalink
use localhost instead of 127.0.0.1 in puma config
Browse files Browse the repository at this point in the history
  • Loading branch information
toy committed Sep 30, 2024
1 parent 65ed6bc commit 03273b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
threads_max_count = OpenProject::Configuration.web_max_threads
threads threads_min_count, [threads_min_count, threads_max_count].max

# Specifies the address on which Puma will listen on to receive requests; default is 127.0.0.1.
set_default_host ENV.fetch("HOST") { "127.0.0.1" }
# Specifies the address on which Puma will listen on to receive requests; default is localhost.
set_default_host ENV.fetch("HOST") { "localhost" }

# Specifies the port that Puma will listen on to receive requests; default is 3000.
port ENV.fetch("PORT") { 3000 }.to_i
Expand Down

0 comments on commit 03273b9

Please sign in to comment.