Skip to content

Commit

Permalink
Reduce number of default ports Add old defaults to ports example
Browse files Browse the repository at this point in the history
Reduces networking overhead by sharing fewer ports by default.
  • Loading branch information
svpernova09 committed Jul 18, 2021
1 parent 24a7891 commit b4afb19
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
19 changes: 13 additions & 6 deletions resources/Homestead.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,16 @@ features:
# - disabled:
# - "postgresql@11-main"

# ports:
# - send: 50000
# to: 5000
# - send: 7777
# to: 777
# protocol: udp
#ports:
# - send: 3306 # MySQL/MariaDB
# to: 33060
# - send: 4040
# to: 4040
# - send: 5432 # PostgreSQL
# to: 54320
# - send: 8025 # Mailhog
# to: 8025
# - send: 9600
# to: 9600
# - send: 27017
# to: 27017
6 changes: 0 additions & 6 deletions scripts/homestead.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,6 @@ def self.configure(config, settings)
default_ports = {
80 => 8000,
443 => 44300,
3306 => 33060,
4040 => 4040,
5432 => 54320,
8025 => 8025,
9600 => 9600,
27017 => 27017
}

# Use Default Port Forwarding Unless Overridden
Expand Down

0 comments on commit b4afb19

Please sign in to comment.