project Websites / videos.bentasker.co.uk avatar

websites/videos.bentasker.co.uk#1: Tor Hidden Service Support



Issue Information

Issue Type: issue
Status: closed
Reported By: btasker
Assigned To: btasker

Milestone: v0.18
Created: 09-Mar-22 18:38



Description

I want to adjust the embed script so that it detects whether the user is viewing via a Tor hidden service - if they are, then rather than videos.bentasker.co.uk, it should use the new Hidden service (dnkpodkuqowld7pnmpt5droubfzgv7tziz2fbiuufpvocbdonobq4xyd.onion).



Toggle State Changes

Activity


assigned to @btasker

verified

mentioned in commit 18ce4a967a48932f772ed2d266627794ce208d7d

Commit: 18ce4a967a48932f772ed2d266627794ce208d7d 
Author: B Tasker                            
                            
Date: 2022-03-09T19:07:40.000+00:00 

Message

If we're being embedded into a Tor site, use the dedicated hidden service to serve video websites/videos.bentasker.co.uk#1

+14 -0 (14 lines changed)

The changes have been made - playback works when playing via the hidden service. I don't (currently) have a good way to test cross domain ahead of a release being made.

verified

mentioned in commit 6fb9282ce270f57ee864b9c7757db9b20bd5313b

Commit: 6fb9282ce270f57ee864b9c7757db9b20bd5313b 
Author: B Tasker                            
                            
Date: 2022-03-09T19:29:30.000+00:00 

Message

When generating analytics payload, replace the onion domain if necessary - websites/videos.bentasker.co.uk#1

+1 -1 (2 lines changed)

This is working

  • http://e26whn2524322mkxb3cbyk27ev2ihhq2biz35hty7gzgsyrwrygq27yd.onion/posts/videos/677-joycon-analog-stick-replacement.html loads video via the HS
  • https://www.bentasker.co.uk/posts/videos/677-joycon-analog-stick-replacement.html uses the clearnet domain.

mentioned in issue #4