2016-11-11, 08:05
I have a working https and subpath setup using AWS and thought I would test this also
My current working .env file (to show how i enter the variables) is this:
RESULT
TEST 1 : Comment out KODI_SCHEME and KODI_SUBPATH
RESULT
TEST 2 : Uncommented KODI_SCHEME and KODI_SUBPATH but leave KODI_SUBPATH empty
RESULT
Which I will assume would have worked fine if I had everything set up to receive.
A long post I know, but it's clearer to see the whole thing.
Hope it helps
My current working .env file (to show how i enter the variables) is this:
Code:
# The Kodi webserver only supports HTTP.
#
# You can change KODI_SCHEME to https to tell the skill to use https (from AWS to your local network)
# It is assumed that you know what https is and that you have already set this up with your own certificates
KODI_SCHEME = https
KODI_ADDRESS = supersecret.evenmoresecret.com
KODI_PORT = 34242
KODI_USERNAME = supersecretusername
KODI_PASSWORD = supersecretandsuperlongpassword
# If using a reverse proxy you might need to add an extra bit to the url before "jsonrpc"
#
# KODI_SCHEME://KODI_ADDRESS:KODI_PORT/KODI_SUBPATH/jsonrpc
#
# Set this with KODI_SUBPATH (no slashes)
KODI_SUBPATH = supersecretsubpath
SKILL_APPID = amzn1.ask.skill.123123123123123212123312312321
LAMBDA_ENV_VARS = KODI_SCHEME,KODI_ADDRESS,KODI_PORT,KODI_SUBPATH,KODI_USERNAME,KODI_PASSWORD,SKILL_APPID
AWS_DEFAULT_REGION = eu-west-1
LAMBDA_TIMEOUT = 60
LAMBDA_MEMORY_SIZE = 128
LAMBDA_HANDLER = wsgi.lambda_handler
AWS_ACCESS_KEY_ID = ABDHSDGDHSKDHSALHFDSHFDJSHFJDLKS
AWS_SECRET_ACCESS_KEY = ASDASDASDASDASDASDASDASDASDASDASD
LAMBDA_ROLE = arn:aws:iam::123123123123:role/lambda_kodi_basic_execution
RESULT
Code:
Sending request to https://supersecret.evenmoresecret.com:34242/supersecretsubpath/jsonrpc
TEST 1 : Comment out KODI_SCHEME and KODI_SUBPATH
Code:
# The Kodi webserver only supports HTTP.
#
# You can change KODI_SCHEME to https to tell the skill to use https (from AWS to your local network)
# It is assumed that you know what https is and that you have already set this up with your own certificates
# KODI_SCHEME = https
KODI_ADDRESS = supersecret.evenmoresecret.com
KODI_PORT = 34242
KODI_USERNAME = supersecretusername
KODI_PASSWORD = supersecretandsuperlongpassword
# If using a reverse proxy you might need to add an extra bit to the url before "jsonrpc"
#
# KODI_SCHEME://KODI_ADDRESS:KODI_PORT/KODI_SUBPATH/jsonrpc
#
# Set this with KODI_SUBPATH (no slashes)
# KODI_SUBPATH = supersecretsubpath
SKILL_APPID = amzn1.ask.skill.123123123123123212123312312321
LAMBDA_ENV_VARS = KODI_SCHEME,KODI_ADDRESS,KODI_PORT,KODI_SUBPATH,KODI_USERNAME,KODI_PASSWORD,SKILL_APPID
AWS_DEFAULT_REGION = eu-west-1
LAMBDA_TIMEOUT = 60
LAMBDA_MEMORY_SIZE = 128
LAMBDA_HANDLER = wsgi.lambda_handler
AWS_ACCESS_KEY_ID = ABDHSDGDHSKDHSALHFDSHFDJSHFJDLKS
AWS_SECRET_ACCESS_KEY = ASDASDASDASDASDASDASDASDASDASDASD
LAMBDA_ROLE = arn:aws:iam::123123123123:role/lambda_kodi_basic_execution
RESULT
Code:
Sending request to http://None:/supersecret.evenmoresecret.com:34242/None/jsonrpc
TEST 2 : Uncommented KODI_SCHEME and KODI_SUBPATH but leave KODI_SUBPATH empty
Code:
# The Kodi webserver only supports HTTP.
#
# You can change KODI_SCHEME to https to tell the skill to use https (from AWS to your local network)
# It is assumed that you know what https is and that you have already set this up with your own certificates
KODI_SCHEME = http
KODI_ADDRESS = supersecret.evenmoresecret.com
KODI_PORT = 34242
KODI_USERNAME = supersecretusername
KODI_PASSWORD = supersecretandsuperlongpassword
# If using a reverse proxy you might need to add an extra bit to the url before "jsonrpc"
#
# KODI_SCHEME://KODI_ADDRESS:KODI_PORT/KODI_SUBPATH/jsonrpc
#
# Set this with KODI_SUBPATH (no slashes)
KODI_SUBPATH =
SKILL_APPID = amzn1.ask.skill.123123123123123212123312312321
LAMBDA_ENV_VARS = KODI_SCHEME,KODI_ADDRESS,KODI_PORT,KODI_SUBPATH,KODI_USERNAME,KODI_PASSWORD,SKILL_APPID
AWS_DEFAULT_REGION = eu-west-1
LAMBDA_TIMEOUT = 60
LAMBDA_MEMORY_SIZE = 128
LAMBDA_HANDLER = wsgi.lambda_handler
AWS_ACCESS_KEY_ID = ABDHSDGDHSKDHSALHFDSHFDJSHFJDLKS
AWS_SECRET_ACCESS_KEY = ASDASDASDASDASDASDASDASDASDASDASD
LAMBDA_ROLE = arn:aws:iam::123123123123:role/lambda_kodi_basic_execution
RESULT
Code:
Sending request to http://supersecret.evenmoresecret.com:34242/jsonrpc
Which I will assume would have worked fine if I had everything set up to receive.
A long post I know, but it's clearer to see the whole thing.
Hope it helps