Skip to content

Commit

Permalink
chore(dev): fix internal static proxy + add /pgadmin to reverse-proxy (
Browse files Browse the repository at this point in the history
  • Loading branch information
NGPixel authored Jun 13, 2023
1 parent 32b90dc commit f3831de
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 15 deletions.
6 changes: 1 addition & 5 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [3000, 5432, 5433, 8000],
"forwardPorts": [3000, 5432, 8000],

"portsAttributes": {
"3000": {
Expand All @@ -78,10 +78,6 @@
"label": "PostgreSQL",
"onAutoForward": "silent"
},
"5433": {
"label": "pgAdmin",
"onAutoForward": "silent"
},
"8000": {
"label": "NGINX",
"onAutoForward": "notify"
Expand Down
6 changes: 0 additions & 6 deletions .devcontainer/docker-compose.extend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,5 @@ services:
# Runs app on the same network as the database container, allows "forwardPorts" in devcontainer.json function.
network_mode: service:db

pgadmin:
network_mode: service:db

static:
network_mode: service:db

volumes:
datatracker-vscode-ext:
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ services:
- [email protected]
- PGADMIN_DEFAULT_PASSWORD=dev
- PGADMIN_CONFIG_LOGIN_BANNER="Login with [email protected] / dev"
- PGADMIN_LISTEN_PORT=5433
- PGADMIN_DISABLE_POSTFIX=True

This comment was marked as spam.

Copy link
@Monysilva1

Monysilva1 Aug 21, 2023

{"issuer":"https://account.meldrx.com","jwks_uri":"https://account.meldrx.com/.well-known/openid-configuration/jwks","authorization_endpoint":"https://account.meldrx.com/connect/authorize","token_endpoint":"https://account.meldrx.com/connect/token","userinfo_endpoint":"https://account.meldrx.com/connect/userinfo","end_session_endpoint":"https://account.meldrx.com/connect/endsession","check_session_iframe":"https://account.meldrx.com/connect/checksession","revocation_endpoint":"https://account.meldrx.com/connect/revocation","introspection_endpoint":"https://account.meldrx.com/connect/introspect","device_authorization_endpoint":"https://account.meldrx.com/connect/deviceauthorization","backchannel_authentication_endpoint":"https://account.meldrx.com/connect/ciba","frontchannel_logout_supported":true,"frontchannel_logout_session_supported":true,"backchannel_logout_supported":true,"backchannel_logout_session_supported":true,"scopes_supported":["roles","offline_access","openid","fhirUser","profile","email","address","meldrx-api","patient/*.read","launch","launch/patient","user/*.read","information-api.admin/write","cms-data-share-api","patient/Account.read","patient/List.write","patient/List.*","patient/MeasureReport.read","patient/MeasureReport.write","patient/MeasureReport.*","patient/Media.read","patient/Media.write","patient/Media.*","patient/MedicationAdministration.read","patient/MedicationAdministration.write","patient/List.read","patient/MedicationAdministration.*","patient/MedicationDispense.write","patient/MedicationDispense.*","patient/MedicationRequest.read","patient/MedicationRequest.write","patient/MedicationRequest.*","patient/MedicationStatement.read","patient/MedicationStatement.write","patient/MedicationStatement.*","patient/MolecularSequence.read","patient/MolecularSequence.write","patient/MedicationDispense.read","patient/MolecularSequence.*","patient/Invoice.*","patient/Invoice.read","patient/Flag.*","patient/Goal.read","patient/Goal.write","patient/Goal.*","patient/Group.read","patient/Group.write","patient/Group.*","patient/GuidanceResponse.read","patient/GuidanceResponse.write","patient/GuidanceResponse.*","patient/Invoice.write","patient/ImagingStudy.read","patient/ImagingStudy.*","patient/Immunization.read","patient/Immunization.write","patient/Immunization.*","patient/ImmunizationEvaluation.read","patient/ImmunizationEvaluation.write","patient/ImmunizationEvaluation.*","patient/ImmunizationRecommendation.read","patient/ImmunizationRecommendation.write","patient/ImmunizationRecommendation.*","patient/ImagingStudy.write","patient/NutritionOrder.read","patient/NutritionOrder.write","patient/NutritionOrder.*","patient/RiskAssessment.read","patient/RiskAssessment.write","patient/RiskAssessment.*","patient/Schedule.read","patient/Schedule.write","patient/Schedule.*","patient/ServiceRequest.read","patient/ServiceRequest.write","patient/ServiceRequest.*","patient/Specimen.read","patient/ResearchSubject.*","patient/Specimen.write","patient/SupplyDelivery.read","patient/SupplyDelivery.write","patient/SupplyDelivery.*","patient/SupplyRequest.read","patient/SupplyRequest.write","patient/SupplyRequest.*","patient/Task.read","patient/Task.write","patient/Task.*","patient/VisionPrescription.read","patient/Specimen.*","patient/ResearchSubject.write","patient/ResearchSubject.read","patient/RequestGroup.*","patient/Observation.read","patient/Observation.write","patient/Observation.*","patient/Patient.read","patient/Patient.write","patient/Patient.*","patient/Person.read","patient/Person.write","patient/Person.*","patient/Procedure.read","patient/Procedure.write","patient/Procedure.*","patient/Provenance.read","patient/Provenance.write","patient/Provenance.*","patient/QuestionnaireResponse.read","patient/QuestionnaireResponse.write","patient/QuestionnaireResponse.*","patient/RelatedPerson.read","patient/RelatedPerson.write","patient/RelatedPerson.*","patient/RequestGroup.read","patient/RequestGroup.write","patient/Flag.write","patient/Flag.read","patient/FamilyMemberHistory.*","patient/FamilyMemberHistory.write","patient/CareTeam.write","patient/CareTeam.*","patient/ChargeItem.read","patient/ChargeItem.write","patient/ChargeItem.*","patient/Claim.read","patient/Claim.write","patient/Claim.*","patient/ClaimResponse.read","patient/ClaimResponse.write","patient/CareTeam.read","patient/ClaimResponse.*","patient/ClinicalImpression.write","patient/ClinicalImpression.*","patient/Communication.read","patient/Communication.write","patient/Communication.*","patient/CommunicationRequest.read","patient/CommunicationRequest.write","patient/CommunicationRequest.*","patient/Composition.read","patient/Composition.write","patient/ClinicalImpression.read","patient/CarePlan.*","patient/CarePlan.write","patient/CarePlan.read","patient/Account.write","patient/Account.*","patient/AdverseEvent.read","patient/AdverseEvent.write","patient/AdverseEvent.*","patient/AllergyIntolerance.read","patient/AllergyIntolerance.write","patient/AllergyIntolerance.*","patient/Appointment.read","patient/Appointment.write","patient/Appointment.*","patient/AppointmentResponse.read","patient/AppointmentResponse.write","patient/AppointmentResponse.*","patient/AuditEvent.read","patient/AuditEvent.write","patient/AuditEvent.*","patient/Basic.read","patient/Basic.write","patient/Basic.*","patient/BodyStructure.read","patient/BodyStructure.write","patient/BodyStructure.*","patient/Composition.*","patient/VisionPrescription.write","patient/Condition.read","patient/Condition.*","patient/DiagnosticReport.read","patient/DiagnosticReport.write","patient/DiagnosticReport.*","patient/DocumentManifest.read","patient/DocumentManifest.write","patient/DocumentManifest.*","patient/DocumentReference.read","patient/DocumentReference.write","patient/DocumentReference.*","patient/Encounter.read","patient/DeviceUseStatement.*","patient/Encounter.write","patient/EnrollmentRequest.read","patient/EnrollmentRequest.write","patient/EnrollmentRequest.*","patient/EpisodeOfCare.read","patient/EpisodeOfCare.write","patient/EpisodeOfCare.*","patient/ExplanationOfBenefit.read","patient/ExplanationOfBenefit.write","patient/ExplanationOfBenefit.*","patient/FamilyMemberHistory.read","patient/Encounter.*","patient/DeviceUseStatement.write","patient/DeviceUseStatement.read","patient/DeviceRequest.*","patient/Consent.read","patient/Consent.write","patient/Consent.*","patient/Contract.read","patient/Contract.write","patient/Contract.*","patient/Coverage.read","patient/Coverage.write","patient/Coverage.*","patient/CoverageEligibilityRequest.read","patient/CoverageEligibilityRequest.write","patient/CoverageEligibilityRequest.*","patient/CoverageEligibilityResponse.read","patient/CoverageEligibilityResponse.write","patient/CoverageEligibilityResponse.*","patient/DetectedIssue.read","patient/DetectedIssue.write","patient/DetectedIssue.*","patient/Device.read","patient/Device.write","patient/Device.*","patient/DeviceRequest.read","patient/DeviceRequest.write","patient/Condition.write","patient/VisionPrescription.*","patient/*.*","patient/*.write","system/*.read","patient/Organization.*","patient/Practitioner.*","offline_access"],"claims_supported":["role","sub","name","family_name","given_name","middle_name","nickname","preferred_username","profile","picture","website","gender","birthdate","zoneinfo","locale","updated_at","email","email_verified","address"],"grant_types_supported":["authorization_code","client_credentials","refresh_token","implicit","password","urn:ietf:params:oauth:grant-type:device_code","urn:openid:params:grant-type:ciba","delegation"],"response_types_supported":["code","token","id_token","id_token token","code id_token","code token","code id_token token"],"response_modes_supported":["form_post","query","fragment"],"token_endpoint_auth_methods_supported":["client_secret_basic","client_secret_post","private_key_jwt"],"id_token_signing_alg_values_supported":["RS256","ES384"],"subject_types_supported":["public"],"code_challenge_methods_supported":["S256"],"request_parameter_supported":true,"request_object_signing_alg_values_supported":["RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512","HS256","HS384","HS512"],"authorization_response_iss_parameter_supported":true,"backchannel_token_delivery_modes_supported":["poll"],"backchannel_user_code_parameter_supported":true,"registration_endpoint":"https://account.meldrx.com/api/DynamicRegistrations"}

- PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED=False
- SCRIPT_NAME=/pgadmin
volumes:
- ./docker/configs/pgadmin-servers.json:/pgadmin4/servers.json

Expand Down
4 changes: 3 additions & 1 deletion docker/configs/nginx-502.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
background-color: #222;
border-radius: 10px;
padding: 10px 50px;
display: inline-block;
}
i {
font-size: 64px;
Expand Down Expand Up @@ -54,6 +53,9 @@ <h2>Could not connect to dev server.</h2>
<p class="mt">Using <strong>VS Code</strong>, open the <strong>Run and Debug</strong> tab on the left and click the <i>&#x2023;</i> symbol (Run Server) to start the server.</p>
<p>Otherwise, run the command <code>ietf/manage.py runserver 0.0.0.0:8001</code> from the terminal.</p>
</div>
<div class="mt">
<p>You can manage the database at <a href="/pgadmin">/pgadmin</a>.</p>
</div>
<p class="mt">For more information, check out the <a href="https://github.com/ietf-tools/datatracker/blob/main/docker/README.md" target="_blank">Datatracker Development in Docker</a> guide.</p>
</body>
</html>
9 changes: 8 additions & 1 deletion docker/configs/nginx-proxy.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@ server {
server_name _;

location /_static/ {
proxy_pass http://localhost:80/;
proxy_pass http://static/;
}

location /pgadmin/ {
proxy_set_header X-Script-Name /pgadmin;
proxy_set_header Host $host;
proxy_pass http://pgadmin;
proxy_redirect off;
}

location / {
Expand Down
2 changes: 1 addition & 1 deletion docker/configs/settings_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@
DE_GFM_BINARY = '/usr/local/bin/de-gfm'

STATIC_IETF_ORG = "/_static"
STATIC_IETF_ORG_INTERNAL = "http://localhost:80"
STATIC_IETF_ORG_INTERNAL = "http://static"

0 comments on commit f3831de

Please sign in to comment.