forked from tableau/TabPy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ogolovatyi
authored and
ogolovatyi
committed
Feb 22, 2019
1 parent
c88140a
commit c2acbf3
Showing
11 changed files
with
248 additions
and
135 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
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 |
---|---|---|
@@ -1,32 +1,43 @@ | ||
# TabPy Server Configuration Instructions | ||
|
||
Default settings for TabPy may be viewed in the tabpy_server/common/default.conf file. This file also contains a commented example of how to set up your TabPy server to only serve HTTPS traffic. | ||
Default settings for TabPy may be viewed in the | ||
tabpy_server/common/default.conf file. This file also contains a | ||
commented example of how to set up your TabPy server to only | ||
serve HTTPS traffic. | ||
|
||
Change settings by: | ||
|
||
1. Adding environment variables: | ||
- set the environment variable as required by your Operating System. When creating environment variables, use the same name as is in the config file as an environment variable. The files startup.sh and startup.cmd in the root of the install folder have examples of how to set environment variables in both Linux and Windows respectively. Set any desired environment variables and then start the application. | ||
- set the environment variable as required by your Operating System. When | ||
creating environment variables, use the same name as is in the config file | ||
as an environment variable. The files startup.sh and startup.cmd in the root | ||
of the install folder have examples of how to set environment variables in | ||
both Linux and Windows respectively. Set any desired environment variables | ||
and then start the application. | ||
2. Modifying default.conf. | ||
3. Specifying your own config file as a command line parameter. | ||
- i.e. Running the command: | ||
```python tabpy.py --config=path\to\my\config``` | ||
|
||
The default config file is provided to show you the default values but does not need to be present to run TabPy. | ||
The default config file is provided to show you the default values but does not | ||
need to be present to run TabPy. | ||
|
||
## Configuring HTTP vs HTTPS | ||
|
||
By default, TabPy serves only HTTP requests. TabPy can be configured to serve only HTTPS requests by setting the following parameter in the config file: | ||
By default, TabPy serves only HTTP requests. TabPy can be configured to serve | ||
only HTTPS requests by setting the following parameter in the config file: | ||
|
||
```sh | ||
TABPY_TRANSFER_PROTOCOL = https | ||
``` | ||
|
||
If HTTPS is selected, the absolute paths to the cert and key file need to be specified in your config file using the following parameters: | ||
If HTTPS is selected, the absolute paths to the cert and key file need to be | ||
specified in your config file using the following parameters: | ||
|
||
```sh | ||
TABPY_CERTIFICATE_FILE = C:/path/to/cert/file.crt | ||
TABPY_KEY_FILE = C:/path/to/key/file.key | ||
``` | ||
|
||
Note that only PEM-encoded x509 certificates are supported for the secure connection scenario. | ||
|
||
Note that only PEM-encoded x509 certificates are supported for the secure | ||
connection scenario. |
Oops, something went wrong.