Skip to content

Commit 131af3d

Browse files
committed
fix: Use environment variable for SERVICE_ADDRESS.
1 parent ef726c4 commit 131af3d

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

nitric/config/default_settings.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@
1616
# See the License for the specific language governing permissions and
1717
# limitations under the License.
1818
#
19+
import os
1920

2021
# Provides a set of default settings that env vars can replace
21-
2222
# Nitric Membrane Service Address
23-
SERVICE_BIND = "127.0.0.1:50051"
24-
# Child Process (User Code) Host Address
25-
CHILD_ADDRESS = "127.0.0.1:8080"
23+
SERVICE_BIND = os.environ.get('SERVICE_ADDRESS', '127.0.0.1:50051');
24+

0 commit comments

Comments
 (0)