-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add scheme option to bind to both HTTP and HTTPS (#1215)
* Add scheme option to bind to both HTTP and HTTPS * changes * Change to 2 listeners and a single server * fix * Apply suggestions from code review Co-authored-by: fsouza <[email protected]> * fix for default ports handling * check if flags default value using visit * add example test runs and unit tests --------- Co-authored-by: fsouza <[email protected]>
- Loading branch information
Showing
7 changed files
with
375 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Copyright 2023 Francisco Souza. All rights reserved. | ||
# Use of this source code is governed by a BSD-style | ||
# license that can be found in the LICENSE file. | ||
|
||
set -e | ||
|
||
./fake-gcs-server -backend memory -scheme both -data ${PWD}/examples/data & | ||
|
||
apk add --update curl | ||
curl --silent --fail --insecure https://0.0.0.0:4443/storage/v1/b | ||
curl --silent --fail --insecure http://0.0.0.0:8000/storage/v1/b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Copyright 2023 Francisco Souza. All rights reserved. | ||
# Use of this source code is governed by a BSD-style | ||
# license that can be found in the LICENSE file. | ||
|
||
set -e | ||
|
||
./fake-gcs-server -backend memory -port 5553 -port-http 9000 -scheme both -data ${PWD}/examples/data & | ||
|
||
apk add --update curl | ||
curl --silent --fail --insecure https://0.0.0.0:5553/storage/v1/b | ||
curl --silent --fail --insecure http://0.0.0.0:9000/storage/v1/b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.