Skip to content

Commit 409d187

Browse files
Merge pull request #62 from nitrictech/add-missing-license-header
Add missing license header.
2 parents 09d3e63 + 131af3d commit 409d187

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

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+

nitric/resources/base.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
#
2+
# Copyright (c) 2021 Nitric Technologies Pty Ltd.
3+
#
4+
# This file is part of Nitric Python 3 SDK.
5+
# See https://github.com/nitrictech/python-sdk for further info.
6+
#
7+
# Licensed under the Apache License, Version 2.0 (the "License");
8+
# you may not use this file except in compliance with the License.
9+
# You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS,
15+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
# See the License for the specific language governing permissions and
17+
# limitations under the License.
18+
#
119
from __future__ import annotations
220

321
import asyncio

0 commit comments

Comments
 (0)