Skip to content

Commit

Permalink
chore(Remove Chavruta): Remove all references to RTC server
Browse files Browse the repository at this point in the history
  • Loading branch information
saengel committed Jul 4, 2023
1 parent d0a2a6f commit 4c3fafe
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,6 @@ data:
SEARCH_INDEX_NAME_SHEET = 'sheet'
SEARCH_INDEX_NAME_MERGED = 'merged'
# DafRoulette server
RTC_SERVER = 'rtc.sefaria.org'
TURN_SERVER = os.getenv("TURN_SERVER") #coturn.cauldron.sefaria.org
TURN_SECRET= os.getenv("TURN_SECRET")
TURN_USER = os.getenv("TURN_USER")
Expand Down
5 changes: 2 additions & 3 deletions reader/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
from sefaria.utils.util import text_preview, short_to_long_lang_code, epoch_time
from sefaria.utils.hebrew import hebrew_term, is_hebrew
from sefaria.utils.calendars import get_all_calendar_items, get_todays_calendar_items, get_keyed_calendar_items, get_parasha, get_todays_parasha
from sefaria.settings import STATIC_URL, USE_VARNISH, USE_NODE, NODE_HOST, DOMAIN_LANGUAGES, MULTISERVER_ENABLED, SEARCH_ADMIN, RTC_SERVER, MULTISERVER_REDIS_SERVER, \
from sefaria.settings import STATIC_URL, USE_VARNISH, USE_NODE, NODE_HOST, DOMAIN_LANGUAGES, MULTISERVER_ENABLED, SEARCH_ADMIN, MULTISERVER_REDIS_SERVER, \
MULTISERVER_REDIS_PORT, MULTISERVER_REDIS_DB, DISABLE_AUTOCOMPLETER, ENABLE_LINKER
from sefaria.site.site_settings import SITE_SETTINGS
from sefaria.system.multiserver.coordinator import server_coordinator
Expand Down Expand Up @@ -260,8 +260,7 @@ def base_props(request):
},
"trendingTopics": trending_topics(days=7, ntags=5),
"_siteSettings": SITE_SETTINGS,
"_debug": DEBUG,
"rtc_server": RTC_SERVER
"_debug": DEBUG
})
return user_data

Expand Down
3 changes: 0 additions & 3 deletions sefaria/local_settings_ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@
SEFARIA_EXPORT_PATH = '/path/to/your/Sefaria-Data/export' # used for exporting texts


# DafRoulette server
RTC_SERVER = '' # Root URL/IP of the server

GOOGLE_TAG_MANAGER_CODE = 'you tag manager code here'

# Determine which CRM connection implementations to use
Expand Down
3 changes: 0 additions & 3 deletions sefaria/local_settings_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,6 @@
SEFARIA_EXPORT_PATH = '/path/to/your/Sefaria-Data/export' # used for exporting texts


# DafRoulette server
RTC_SERVER = '' # Root URL/IP of the server

GOOGLE_GTAG = 'your gtag id here'
GOOGLE_TAG_MANAGER_CODE = 'you tag manager code here'

Expand Down
2 changes: 1 addition & 1 deletion sefaria/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
from sefaria.system.cache import in_memory_cache
from sefaria.client.util import jsonResponse, send_email, read_webpack_bundle
from sefaria.forms import SefariaNewUserForm, SefariaNewUserFormAPI, SefariaDeleteUserForm
from sefaria.settings import MAINTENANCE_MESSAGE, USE_VARNISH, MULTISERVER_ENABLED, RTC_SERVER
from sefaria.settings import MAINTENANCE_MESSAGE, USE_VARNISH, MULTISERVER_ENABLED
from sefaria.model.user_profile import UserProfile, user_link
from sefaria.model.collection import CollectionSet
from sefaria.export import export_all as start_export_all
Expand Down
13 changes: 0 additions & 13 deletions static/js/ReaderApp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2172,19 +2172,6 @@ toggleSignUpModal(modalContentKind = SignUpModalKind.Default) {
const communityPagePreviewControls = this.props.communityPreview ?
<CommunityPagePreviewControls date={this.props.communityPreview} /> : null;

const beitMidrashPanel = this.state.beitMidrashStatus ? (
<div id='beitMidrash' style={{width: 330,
marginInlineStart: "auto",
marginInlineEnd: 0,
height: `calc(100% - 60px)`,
marginTop: 60}}>
<BeitMidrash
socket={io(`//${Sefaria.rtc_server}`, {autoConnect: false})}
beitMidrashId = {this.state.beitMidrashId}
currentlyReading = {this.generateCurrentlyReading()}
/>
</div>
) : null

var classDict = {readerApp: 1, multiPanel: this.props.multiPanel, singlePanel: !this.props.multiPanel};
var interfaceLangClass = `interface-${this.props.interfaceLang}`;
Expand Down
3 changes: 1 addition & 2 deletions static/js/sefaria/sefaria.js
Original file line number Diff line number Diff line change
Expand Up @@ -2945,8 +2945,7 @@ Sefaria.unpackBaseProps = function(props){
"followRecommendations",
"trendingTopics",
"_siteSettings",
"_debug",
"rtc_server"
"_debug"
];
for (const element of dataPassedAsProps) {
if (element in props) {
Expand Down
6 changes: 0 additions & 6 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -251,12 +251,6 @@
{% endif %}


<script>
{% autoescape off %}
RTC_SERVER = "{{ RTC_SERVER }}"
{% endautoescape %}
</script>

{% render_bundle 'main' %}

{% block js %}{% endblock %}
Expand Down

0 comments on commit 4c3fafe

Please sign in to comment.