Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .env-sample
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ I2P_ALIAS = ''
I2P_LONG = ''
LOCAL_ALIAS = ''

# The name of the request header used for CSRF authentication.
CSRF_TRUSTED_ORIGINS = 'http://localhost:12345, http://adminexample.onion'

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'django-insecure-6^&6uw$b5^en%(cu2kc7_o)(mgpazx#j_znwlym0vxfamn2uo-'

Expand Down
3 changes: 3 additions & 0 deletions robosats/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,3 +308,6 @@
INVOICE_AND_ESCROW_DURATION = 180
# Time to confirm chat and confirm fiat (time to Fiat Sent confirmation) HOURS
FIAT_EXCHANGE_DURATION = 24

# The name of the request header used for CSRF authentication.
CSRF_TRUSTED_ORIGINS = config('CSRF_TRUSTED_ORIGINS', cast=lambda v: [s.strip() for s in v.split(',')], default=[])
Loading