-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating to match Core CMS settings structure #77
Merged
+678
−547
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
5a6f0ec
updating to match settings structure
xandroc 95d223d
FP-1194: Assist: Remove rogue _ in texascale
wesleyboar e4ec59c
FP-1194: Assist: Remove _'s in a2cps & tup
wesleyboar a544a72
FP-1194: Assist: PORTAL → INCLUDES_CORE_PORTAL
wesleyboar c69dec9
add core-cms settings_custom
rstijerina 6b4075e
adding verification endpoint
xandroc 2fdbd87
FP-1194: Assist: ProTX to latest secrets, drop redundancy
wesleyboar 93ac57e
Added the a2cps/settings_custom.py file for use across all a2cps CMS …
taoteg 6ce45d3
FP-1194: Export settings in protx-cms
wesleyboar 78bee62
Moved LDAP check into custom fo A2CPS.
taoteg 8195f60
Removed all extraneous commenst from a2cps settings_custom.
taoteg c574f81
TWeaked a2cps to include defaults for GA. Fixed a type in protx setti…
taoteg 9c306e6
Removed portal links and features from a2cps custom_settings.
taoteg e751b84
Up[dated heading in ProTx custom settings.
taoteg 3c0919c
Removed extraneous comment in a2cps settings.
taoteg 30b3bef
Resolved concerns about Branding secrets and redundancy. settings.py …
taoteg 5231deb
Further removal of redundant defaults from custom settings in a2cps a…
taoteg 95e1d32
Aligning settings_custom with settings.py in Core-CMS.
taoteg 3de2a71
Removing unused settings from examples.
taoteg 9c5a6e9
Aligning the custom settings across projects.
taoteg 4044081
Updated tup custom settings.
taoteg 920f25c
Updated tup custom settings.
taoteg 12c6d24
Updated the tup.dev cms image tag.
taoteg a7d471b
Addiniig some detailsinto tup settings custom.
taoteg 7089634
FP-1194: TAPIS, LCCF, Example, ProTX: Fix settings
wesleyboar fd2c1af
FP-1194: FP, 3Dem, SciVis, Texascale: Fix settings
wesleyboar 591d6fa
Update settings_custom.py
taoteg c192e55
Quick: Formatting consistency tweak
wesleyboar 4dbc525
Merge branch 'task/FP-1194--assist' of github.com:TACC/Core-CMS-Resou…
wesleyboar 81d42be
Merge branch 'task/FP-1194' into task/FP-1194--assist
wesleyboar b04a774
FP-1213: Add UTRC (with FP-1194 setup)
wesleyboar 32f234a
Update settings_custom.py
taoteg 4a410ac
Merge pull request #80 from TACC/task/FP-1194--FP-1213-utrc-setup
taoteg 4671005
Merge pull request #74 from TACC/task/FP-1194--assist
taoteg 002487f
Update settings_custom.py
taoteg ca0cf94
Tweaking some formatting and layout inconsistencies and fixing a few …
taoteg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# CUSTOM SETTINGS VALUES. | ||
# TACC WMA CMS SITE: | ||
# *.A2CPS.TACC.UTEXAS.EDU | ||
|
||
######################## | ||
# DJANGO CMS SETTINGS | ||
######################## | ||
|
||
CMS_TEMPLATES = ( | ||
('a2cps-cms/templates/standard.html', 'Standard'), | ||
('a2cps-cms/templates/fullwidth.html', 'Full Width'), | ||
('guide.html', 'Guide'), | ||
('guides/getting_started.html', 'Guide: Getting Started'), | ||
('guides/data_transfer.html', 'Guide: Data Transfer'), | ||
('guides/data_transfer.globus.html', 'Guide: Globus Data Transfer'), | ||
('guides/portal_technology.html', 'Guide: Portal Technology Stack') | ||
) | ||
|
||
######################## | ||
# LOGOS | ||
######################## | ||
|
||
LOGO = [ | ||
"a2cps", | ||
"a2cps-cms/img/org_logos/a2cps.png", | ||
"", | ||
"/", | ||
"_self", | ||
"A2CPS: Acute to Chronic Pain Signatures", | ||
"anonymous", | ||
"True" | ||
] |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# CUSTOM SETTINGS VALUES. | ||
# TACC WMA CMS SITE: | ||
# *.CEP.TACC.UTEXAS.EDU | ||
|
||
# SHOULD USE ALMOST ALL DEFAULT VALUES. | ||
|
||
CEP_AUTH_VERIFICATION_ENDPOINT='https://dev.cep.tacc.utexas.edu' | ||
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# CUSTOM SETTINGS VALUES. | ||
# TACC WMA CMS SITE: | ||
# *.PROJECT-DOMAIN.TACC.UTEXAS.EDU | ||
|
||
# FAQ: Some _VARIABLES are duplicated from settings.py (but prefixed with "_") | ||
# because current infrastructure lacks ability to reference default values | ||
|
||
######################## | ||
# DJANGO CMS SETTINGS | ||
######################## | ||
|
||
CMS_TEMPLATES = ( | ||
('example-cms/templates/fullwidth.html', 'Fullwidth'), | ||
# Support standard template for demo purposes | ||
('fullwidth.html', 'Standard Fullwidth'), | ||
# Support Portal pages for demo purposes | ||
('home_portal.html', 'Standard Portal Homepage'), | ||
('guide.html', 'Guide'), | ||
('guides/getting_started.html', 'Guide: Getting Started'), | ||
('guides/data_transfer.html', 'Guide: Data Transfer'), | ||
('guides/data_transfer.globus.html', 'Guide: Globus Data Transfer'), | ||
('guides/portal_technology.html', 'Guide: Portal Technology Stack') | ||
) | ||
|
||
######################## | ||
# BRANDING | ||
######################## | ||
|
||
_NSF_BRANDING = [ | ||
"nsf", | ||
"site_cms/img/org_logos/nsf-white.png", | ||
"branding-nsf", | ||
"https://www.nsf.gov/", | ||
"_blank", | ||
"NSF Logo", | ||
"anonymous", | ||
"True" | ||
] | ||
|
||
_TACC_BRANDING = [ | ||
"tacc", | ||
"site_cms/img/org_logos/tacc-white.png", | ||
"branding-tacc", | ||
"https://www.tacc.utexas.edu/", | ||
"_blank", | ||
"TACC Logo", | ||
"anonymous", | ||
"True" | ||
] | ||
|
||
_UTEXAS_BRANDING = [ | ||
"utexas", | ||
"site_cms/img/org_logos/utaustin-white.png", | ||
"branding-utaustin", | ||
"https://www.utexas.edu/", | ||
"_blank", | ||
"University of Texas at Austin Logo", | ||
"anonymous", | ||
"True" | ||
] | ||
|
||
BRANDING = [ _NSF_BRANDING, _TACC_BRANDING, _UTEXAS_BRANDING ] | ||
|
||
######################## | ||
# PORTAL | ||
######################## | ||
|
||
INCLUDES_CORE_PORTAL = False |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# CUSTOM SETTINGS VALUES. | ||
# TACC WMA CMS SITE: | ||
# *.FRONTERA-PORTAL.TACC.UTEXAS.EDU | ||
|
||
# FAQ: Some _VARIABLES are duplicated from settings.py (but prefixed with "_") | ||
# because current infrastructure lacks ability to reference default values | ||
|
||
######################## | ||
# DJANGO CMS SETTINGS | ||
######################## | ||
|
||
CMS_TEMPLATES = ( | ||
('frontera-cms/templates/fullwidth.html', 'Fullwidth'), | ||
('fullwidth.html', 'DEPRECATED Fullwidth'), | ||
('frontera-cms/templates/home.html', 'Homepage'), | ||
('guide.html', 'Guide'), | ||
('guides/getting_started.html', 'Guide: Getting Started'), | ||
('guides/data_transfer.html', 'Guide: Data Transfer'), | ||
('guides/data_transfer.globus.html', 'Guide: Globus Data Transfer'), | ||
('guides/portal_technology.html', 'Guide: Portal Technology Stack') | ||
) | ||
|
||
######################## | ||
# BRANDING | ||
######################## | ||
|
||
_NSF_BRANDING = [ | ||
"nsf", | ||
"site_cms/img/org_logos/nsf-white.png", | ||
"branding-nsf", | ||
"https://www.nsf.gov/", | ||
"_blank", | ||
"NSF Logo", | ||
"anonymous", | ||
"True" | ||
] | ||
|
||
_FRONTERA_TACC_BRANDING = [ | ||
"tacc", | ||
"frontera-cms/img/org_logos/tacc-white.png", # TACC/Core-CMS#283 & #284 | ||
"branding-tacc", | ||
"https://www.tacc.utexas.edu/", | ||
"_blank", | ||
"TACC Logo", | ||
"anonymous", | ||
"True" | ||
] | ||
|
||
_UTEXAS_BRANDING = [ | ||
"utexas", | ||
"site_cms/img/org_logos/utaustin-white.png", | ||
"branding-utaustin", | ||
"https://www.utexas.edu/", | ||
"_blank", | ||
"University of Texas at Austin Logo", | ||
"anonymous", | ||
"True" | ||
] | ||
|
||
BRANDING = [ _NSF_BRANDING, _FRONTERA_TACC_BRANDING, _UTEXAS_BRANDING ] | ||
|
||
######################## | ||
# LOGOS | ||
######################## | ||
|
||
LOGO = [ | ||
"frontera", | ||
"frontera-cms/img/org_logos/frontera-white-solo.png", | ||
"", | ||
"/", | ||
"_self", | ||
"Frontera Logo", | ||
"anonymous", | ||
"True" | ||
] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xandroc @taoteg,
CEP_AUTH_VERIFICATION_ENDPOINT
be different for each server environment?secrets.py
(does differ per env), notsettings_custom.py
(does not differ per env), thus not need to be here?If I have misunderstood, then please correct me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh! Great catch, Wes, yes. We should relocate that value into the
secrets.py
.This value should reflect the same value as the first entry in
ALLOWED_HOSTS
for any given machine on the TACC network (dev|pprd|prod.project_domain.tacc.utexas.edu
).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally we'll only have secrets in
secrets.py
, we'll usesettings_custom.py
to track custom settings across environments, so each env will have and commit its ownsettings_custom.py
. Camino will load these in a similar way as to how different image tags are loaded on each environmentThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that is the long term plan once we have the CMS settings moved into the Deployments repo and mirroring portals.
That said, it will have to be done in a follow on task/ticket in a subsequent sprint. There are just too many portals currently being deployed (over the next two week) for me to be remotely comfortable with additional changes to the deployment setup at this time, having just gotten everything working cleanly as of Friday (and with there still being several portals we need to roll out these changes onto in order to complete aligning our live sites).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, both. All makes sense.
Should not be secret value, but must be until we support per-env settings, which is not immediate.
Based on that understanding,
I will remove theCEP_AUTH_VERIFICATION_ENDPOINT
from sites updated in #74.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I never added it to the other sites. So, I don't need to remove it from them. 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ha! Perfect. Okay, I am updating all the hosts to include the value in secrets.py.
we should be good to merge this after we pickup the UTRC stuff in #80 and the other portal settings in #74.
main <-- #77 <-- #74 && #80.
Make it so!
=)