Skip to content
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

DONT_MERGE #1025

Closed
wants to merge 53 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
2fd979b
wip: progress spinner for data-donation
MelchiorKokernoot Nov 7, 2024
e55f1fa
feat: progress spinner working on manual uploads
MelchiorKokernoot Nov 7, 2024
3542bce
feat: use progress spinner on benchmark csv upload
MelchiorKokernoot Nov 7, 2024
d69024e
Update core/frameworks/pixel/components/button.ex
MelchiorKokernoot Nov 7, 2024
ea0a3c2
feat: disable editing mode after clicking button action
MelchiorKokernoot Nov 7, 2024
f0f3651
chore: better way to keep state consistent
MelchiorKokernoot Nov 7, 2024
4577eb6
refactor: use imported button instead of custom button
MelchiorKokernoot Nov 14, 2024
52b82ed
Merge pull request #993 from eyra/feature/959-high-risk-of-accidental…
MelchiorKokernoot Nov 14, 2024
e76d946
Merge pull request #992 from eyra/feature/696
mellelieuwes Nov 14, 2024
11512a7
ci: add workflow to create release package based on debian
MelchiorKokernoot Nov 14, 2024
98aed88
Fixed People share dialog on project
mellelieuwes Nov 11, 2024
cd4c07a
#997 Add possibility to skip finished page
mellelieuwes Nov 14, 2024
ba40bbf
#997 Fixed hiding tool-ref modal view
mellelieuwes Nov 15, 2024
6e4c799
Release version 6
mellelieuwes Nov 15, 2024
ce21e7c
Release version 6
mellelieuwes Nov 15, 2024
cfe10fe
Removed logging donation data
mellelieuwes Nov 19, 2024
0db3a9f
Removed logging donation data II
mellelieuwes Nov 19, 2024
d54259b
Removed logging donation data III
mellelieuwes Nov 19, 2024
d1d07e4
Removed logging donation data IV
mellelieuwes Nov 19, 2024
6aea9dd
Removed logging donation data V
mellelieuwes Nov 19, 2024
31eac3e
Release 6.1
mellelieuwes Nov 19, 2024
ed04977
Release 6.1
mellelieuwes Nov 19, 2024
e58454e
chore: make compatible with debian 12
MelchiorKokernoot Nov 21, 2024
5fe89e6
feat: new docker file + dc setup
MelchiorKokernoot Nov 21, 2024
9cfa051
Merge branch 'develop' into feature/debian-and-upgrades
MelchiorKokernoot Nov 21, 2024
d85569d
fix: docker compose setup with debian12
MelchiorKokernoot Nov 21, 2024
2611923
feature: set container locale
MelchiorKokernoot Nov 21, 2024
26cdb32
replace Logger.warn with Logger.warning
MelchiorKokernoot Nov 21, 2024
8f3be11
feat: add dev-container setup and bump deps for elixirls
MelchiorKokernoot Nov 28, 2024
aac3c04
fix: change deprecated calls to recommended fixes
MelchiorKokernoot Nov 28, 2024
5d1dc3a
Fixed (build and runtime) warnings, credo and dialyzer
mellelieuwes Dec 10, 2024
5b7b0b2
Formatted code
mellelieuwes Dec 10, 2024
74f1c23
feat: add ci action to build releases using docker
MelchiorKokernoot Dec 19, 2024
75dd742
feat: allow user to select branch to release
MelchiorKokernoot Dec 19, 2024
5d07388
feat: change permissions so tar can read files
MelchiorKokernoot Dec 19, 2024
59f2ae5
fix: use user param for docker to make sure permissions are right
MelchiorKokernoot Dec 19, 2024
d1abffc
fix: use user param for docker to make sure permissions are right
MelchiorKokernoot Dec 19, 2024
818692c
fix: change permissions for asdf so mix is available
MelchiorKokernoot Dec 19, 2024
88913d5
fix: change the way asdf is ran
MelchiorKokernoot Dec 19, 2024
fe2ecce
chore: use multi-stage build for optimalisation
MelchiorKokernoot Dec 19, 2024
6747b20
chore: change permissions of release directory
MelchiorKokernoot Dec 19, 2024
bd0407e
fix: remove faulty call to verify release
MelchiorKokernoot Dec 19, 2024
c463d04
chore: add debugging to see if vars are set correctly
MelchiorKokernoot Dec 19, 2024
ce757c4
chore: add debugging to see if vars and files are set correctly
MelchiorKokernoot Dec 19, 2024
6d4b778
fix: set output dir correctly
MelchiorKokernoot Dec 19, 2024
49b6400
feat: release using docker seems to be working
MelchiorKokernoot Dec 19, 2024
2a808b2
chore: add temp trigger to test workflow
MelchiorKokernoot Dec 19, 2024
e69bfca
fix: use next as default bundle on push
MelchiorKokernoot Dec 20, 2024
c53a820
fix: use correct syntax to set VERSION env
MelchiorKokernoot Dec 20, 2024
08eb78c
fix: change TAG setup
MelchiorKokernoot Dec 20, 2024
0c5878a
feat: local CA and forced ssl verification
MelchiorKokernoot Dec 27, 2024
a1480af
feat: add env variables for production env SSL enforcement
MelchiorKokernoot Dec 28, 2024
cd49596
fix: use dynamic verification mode
MelchiorKokernoot Dec 28, 2024
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
37 changes: 37 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-docker-compose
{
"name": "Devcontainer mono",
// Update the 'dockerComposeFile' list if you have more compose files or use different names.
// The .devcontainer/docker-compose.yml file contains any overrides you need/want to make.
"dockerComposeFile": [
"../docker-compose.yml",
"docker-compose.yml"
],
// The 'service' property is the name of the service for the container that VS Code should
// use. Update this value and .devcontainer/docker-compose.yml to the real service name.
"service": "app",
// The optional 'workspaceFolder' property is the path VS Code should open by default when
// connected. This is typically a file mount in .devcontainer/docker-compose.yml
"workspaceFolder": "/app/core",
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {}
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Uncomment the next line if you want start specific services in your Docker Compose config.
// "runServices": [],
// Uncomment the next line if you want to keep your containers running after VS Code shuts down.
// "shutdownAction": "none",
// Uncomment the next line to run commands after the container is created.
// "postCreateCommand": "cat /etc/os-release",
// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": [
"jakebecker.elixir-ls",
],
},
},
// Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "devcontainer"
}
26 changes: 26 additions & 0 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: '3.8'
services:
# Update this to the name of the service you want to work with in your docker-compose.yml file
app:
# Uncomment if you want to override the service's Dockerfile to one in the .devcontainer
# folder. Note that the path of the Dockerfile and context is relative to the *primary*
# docker-compose.yml file (the first in the devcontainer.json "dockerComposeFile"
# array). The sample below assumes your primary file is in the root of your project.
#
# build:
# context: .
# dockerfile: .devcontainer/Dockerfile

volumes:
# Update this to wherever you want VS Code to mount the folder of your project
- ..:/workspaces:cached

# Uncomment the next four lines if you will use a ptrace-based debugger like C++, Go, and Rust.
# cap_add:
# - SYS_PTRACE
# security_opt:
# - seccomp:unconfined

# Overrides default command so things don't shut down after the process ends.
command: sleep infinity

75 changes: 75 additions & 0 deletions .github/workflows/release-debian.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Release

on:
push:
branches:
- master
- feature/*

workflow_dispatch:
inputs:
branch:
description: "Branch to release from"
required: true
default: "feature/debian-and-upgrades-melle"
bundle:
description: "Bundle ID (next, self)"
required: true
default: "next"

jobs:
build-release:
runs-on: ubuntu-20.04
env:
MIX_ENV: prod

steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ inputs.branch || github.ref }}

- name: Set TAG and VERSION
id: vars
run: |
TAG="${{ inputs.bundle || 'next' }}_$(date +%F)_${{ github.run_number }}"
echo "TAG=$TAG" >> $GITHUB_ENV
echo "VERSION=$TAG" >> $GITHUB_ENV
shell: bash

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build Docker Image (dev target) with cache
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
target: dev
tags: next-platform:latest
push: false
load: true
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Run build inside Docker
run: |
docker run --rm \
-e MIX_ENV=$MIX_ENV \
-e BUNDLE=${{ inputs.bundle || 'next' }} \
-e VERSION=${{ env.VERSION }} \
-v ${{ github.workspace }}:/app \
next-platform:latest \
bash -c "cd /app/core && ./scripts/build-frontend && ./scripts/build-release"

- name: Archive release
run: tar cfj "../${{env.VERSION}}.tar.bz2" "${{env.VERSION}}"
working-directory: core

- uses: softprops/action-gh-release@v2
with:
tag_name: "${{env.VERSION}}"
prerelease: false
fail_on_unmatched_files: true
files: |
${{env.VERSION}}.tar.bz2
4 changes: 2 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
erlang 25.3.2.7
elixir 1.14.0-otp-25
erlang 27.1.2
elixir 1.17.0-otp-27
nodejs 18.19.0
25 changes: 23 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,28 @@
* Removed - This notes any features that have been deleted and removed from the software
* Security - This acts as an invitation to users who want to upgrade and avoid any software vulnerabilities

## \#3 unreleased
## \#7 unreleased

## \#6.1 2024-11-19

* Fixed: Memory issues by temporary removing Sentry support

## \#6 2024-11-15

* Added: Support for activating assignment embedded mode by url query param.
* Changed: Prevent the tool modal view from closing during assignment when in embedded mode with a single task.

## \#5 2024-11-11

* Fixed: Add/Remove people working on a project.

## \#4 2024-11-06

* Added: Open links in new tab.
* Added: Manually activate user account (Admin feature) .
* Changed: Improve closing of PDF reader.

## \#3 2024-10-24

* Added: Sentry support for crash management
* Added: Snapchat support for assignment tasks
Expand All @@ -26,4 +47,4 @@

## \#1 2024-06-12

Initial version
Initial version
45 changes: 45 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# ======================
# Builder Stage
# ======================
FROM debian:12 AS builder

WORKDIR /root

RUN apt-get update && apt-get install -y \
locales \
curl \
git \
build-essential \
unzip \
automake \
autoconf \
libssl-dev \
libncurses-dev \
&& rm -rf /var/lib/apt/lists/*

RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8

RUN git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.10.2
ENV PATH="/root/.asdf/bin:/root/.asdf/shims:${PATH}"

RUN asdf plugin-add erlang https://github.com/asdf-vm/asdf-erlang.git && \
asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git && \
asdf plugin-add nodejs https://github.com/asdf-vm/asdf-nodejs.git

COPY .tool-versions /root/.tool-versions
RUN asdf install
RUN asdf reshim

RUN mix local.hex --force && mix local.rebar --force
RUN chmod -R a+rX /root/.asdf

COPY ./core /app/core
WORKDIR /app/core


# ======================
# Dev Stage
# ======================
FROM builder AS dev
CMD ["tail", "-f", "/dev/null"]
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,18 @@ docs: ${MIX_PROJECTS:%=%/docs}
cp -R $*/doc/ doc/`basename $*`

.PHONY: FORCE

dockermigrate:
$(MAKE) dockermix cmd="ecto.migrate"

dockerdeps:
$(MAKE) dockermix cmd="deps.get"

dockerrun:
$(MAKE) dockermix cmd="run"

dockermix:
$(MAKE) dockerbash cmd="mix $(cmd)"

dockerbash:
docker compose exec app bash -c "source ~/.bashrc && $(cmd)"
2 changes: 1 addition & 1 deletion banking_proxy/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ defmodule BankingProxy.MixProject do
{:ranch, "~> 2.1"},
# Dev and test deps
{:mox, "~> 1.0", only: :test},
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
# {:exsync, "~> 0.2", only: :dev},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.26", only: [:dev, :test], runtime: false}
Expand Down
8 changes: 4 additions & 4 deletions banking_proxy/mix.lock
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
%{
"bunt": {:hex, :bunt, "0.2.1", "e2d4792f7bc0ced7583ab54922808919518d0e57ee162901a16a1b6664ef3b14", [:mix], [], "hexpm", "a330bfb4245239787b15005e66ae6845c9cd524a288f0d141c148b02603777a5"},
"bunt": {:hex, :bunt, "1.0.0", "081c2c665f086849e6d57900292b3a161727ab40431219529f13c4ddcf3e7a44", [:mix], [], "hexpm", "dc5f86aa08a5f6fa6b8096f0735c4e76d54ae5c9fa2c143e5a1fc7c1cd9bb6b5"},
"certifi": {:hex, :certifi, "2.9.0", "6f2a475689dd47f19fb74334859d460a2dc4e3252a3324bd2111b8f0429e7e21", [:rebar3], [], "hexpm", "266da46bdb06d6c6d35fde799bcb28d36d985d424ad7c08b5bb48f5b5cdd4641"},
"credo": {:hex, :credo, "1.6.7", "323f5734350fd23a456f2688b9430e7d517afb313fbd38671b8a4449798a7854", [:mix], [{:bunt, "~> 0.2.1", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2.8", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "41e110bfb007f7eda7f897c10bf019ceab9a0b269ce79f015d54b0dcf4fc7dd3"},
"credo": {:hex, :credo, "1.7.10", "6e64fe59be8da5e30a1b96273b247b5cf1cc9e336b5fd66302a64b25749ad44d", [:mix], [{:bunt, "~> 0.2.1 or ~> 1.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2 or ~> 1.0", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "71fbc9a6b8be21d993deca85bf151df023a3097b01e09a2809d460348561d8cd"},
"dialyxir": {:hex, :dialyxir, "1.2.0", "58344b3e87c2e7095304c81a9ae65cb68b613e28340690dfe1a5597fd08dec37", [:mix], [{:erlex, ">= 0.2.6", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm", "61072136427a851674cab81762be4dbeae7679f85b1272b6d25c3a839aff8463"},
"earmark_parser": {:hex, :earmark_parser, "1.4.32", "fa739a0ecfa34493de19426681b23f6814573faee95dfd4b4aafe15a7b5b32c6", [:mix], [], "hexpm", "b8b0dd77d60373e77a3d7e8afa598f325e49e8663a51bcc2b88ef41838cca755"},
"erlex": {:hex, :erlex, "0.2.6", "c7987d15e899c7a2f34f5420d2a2ea0d659682c06ac607572df55a43753aa12e", [:mix], [], "hexpm", "2ed2e25711feb44d52b17d2780eabf998452f6efda104877a3881c2f8c0c0c75"},
"ex_doc": {:hex, :ex_doc, "0.29.4", "6257ecbb20c7396b1fe5accd55b7b0d23f44b6aa18017b415cb4c2b91d997729", [:mix], [{:earmark_parser, "~> 1.4.31", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1", [hex: :makeup_erlang, repo: "hexpm", optional: false]}], "hexpm", "2c6699a737ae46cb61e4ed012af931b57b699643b24dabe2400a8168414bc4f5"},
"exsync": {:hex, :exsync, "0.2.4", "5cdc824553e0f4c4bf60018a9a6bbd5d3b51f93ef8401a0d8545f93127281d03", [:mix], [{:file_system, "~> 0.2", [hex: :file_system, repo: "hexpm", optional: false]}], "hexpm", "f7622d8bb98abbe473aa066ae46f91afdf7a5346b8b89728404f7189d2e80896"},
"file_system": {:hex, :file_system, "0.2.10", "fb082005a9cd1711c05b5248710f8826b02d7d1784e7c3451f9c1231d4fc162d", [:mix], [], "hexpm", "41195edbfb562a593726eda3b3e8b103a309b733ad25f3d642ba49696bf715dc"},
"file_system": {:hex, :file_system, "1.0.1", "79e8ceaddb0416f8b8cd02a0127bdbababe7bf4a23d2a395b983c1f8b3f73edd", [:mix], [], "hexpm", "4414d1f38863ddf9120720cd976fce5bdde8e91d8283353f0e31850fa89feb9e"},
"hackney": {:hex, :hackney, "1.18.1", "f48bf88f521f2a229fc7bae88cf4f85adc9cd9bcf23b5dc8eb6a1788c662c4f6", [:rebar3], [{:certifi, "~>2.9.0", [hex: :certifi, repo: "hexpm", optional: false]}, {:idna, "~>6.1.0", [hex: :idna, repo: "hexpm", optional: false]}, {:metrics, "~>1.0.0", [hex: :metrics, repo: "hexpm", optional: false]}, {:mimerl, "~>1.1", [hex: :mimerl, repo: "hexpm", optional: false]}, {:parse_trans, "3.3.1", [hex: :parse_trans, repo: "hexpm", optional: false]}, {:ssl_verify_fun, "~>1.1.0", [hex: :ssl_verify_fun, repo: "hexpm", optional: false]}, {:unicode_util_compat, "~>0.7.0", [hex: :unicode_util_compat, repo: "hexpm", optional: false]}], "hexpm", "a4ecdaff44297e9b5894ae499e9a070ea1888c84afdd1fd9b7b2bc384950128e"},
"httpoison": {:hex, :httpoison, "1.8.2", "9eb9c63ae289296a544842ef816a85d881d4a31f518a0fec089aaa744beae290", [:mix], [{:hackney, "~> 1.17", [hex: :hackney, repo: "hexpm", optional: false]}], "hexpm", "2bb350d26972e30c96e2ca74a1aaf8293d61d0742ff17f01e0279fef11599921"},
"idna": {:hex, :idna, "6.1.1", "8a63070e9f7d0c62eb9d9fcb360a7de382448200fbbd1b106cc96d3d8099df8d", [:rebar3], [{:unicode_util_compat, "~>0.7.0", [hex: :unicode_util_compat, repo: "hexpm", optional: false]}], "hexpm", "92376eb7894412ed19ac475e4a86f7b413c1b9fbb5bd16dccd57934157944cea"},
"jason": {:hex, :jason, "1.3.0", "fa6b82a934feb176263ad2df0dbd91bf633d4a46ebfdffea0c8ae82953714946", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "53fc1f51255390e0ec7e50f9cb41e751c260d065dcba2bf0d08dc51a4002c2ac"},
"jason": {:hex, :jason, "1.4.4", "b9226785a9aa77b6857ca22832cffa5d5011a667207eb2a0ad56adb5db443b8a", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "c5eb0cab91f094599f94d55bc63409236a8ec69a21a67814529e8d5f6cc90b3b"},
"makeup": {:hex, :makeup, "1.1.0", "6b67c8bc2882a6b6a445859952a602afc1a41c2e08379ca057c0f525366fc3ca", [:mix], [{:nimble_parsec, "~> 1.2.2 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "0a45ed501f4a8897f580eabf99a2e5234ea3e75a4373c8a52824f6e873be57a6"},
"makeup_elixir": {:hex, :makeup_elixir, "0.16.1", "cc9e3ca312f1cfeccc572b37a09980287e243648108384b97ff2b76e505c3555", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.2.3 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "e127a341ad1b209bd80f7bd1620a15693a9908ed780c3b763bccf7d200c767c6"},
"makeup_erlang": {:hex, :makeup_erlang, "0.1.2", "ad87296a092a46e03b7e9b0be7631ddcf64c790fa68a9ef5323b6cbb36affc72", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "f3f5a1ca93ce6e092d92b6d9c049bcda58a3b617a8d888f8e7231c85630e8108"},
Expand Down
2 changes: 1 addition & 1 deletion core/bundles/next/lib/account/session_controller.ex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
defmodule Next.Account.SessionController do
use CoreWeb, :controller
import CoreWeb.Gettext
use Gettext, backend: CoreWeb.Gettext

alias Systems.Account

Expand Down
2 changes: 1 addition & 1 deletion core/bundles/next/lib/account/signin_page_builder.ex
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Next.Account.SigninPageBuilder do
import CoreWeb.Gettext
use Gettext, backend: CoreWeb.Gettext
import Frameworks.Utility.List

import Core.FeatureFlags
Expand Down
2 changes: 1 addition & 1 deletion core/bundles/next/lib/menu/items.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ defmodule Next.Menu.Items do
use CoreWeb, :verified_routes
@behaviour CoreWeb.Menu.ItemsProvider

import CoreWeb.Gettext
use Gettext, backend: CoreWeb.Gettext

@impl true
def values() do
Expand Down
2 changes: 1 addition & 1 deletion core/bundles/next/start_pages.ex
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ defmodule Next.StartPages do

defmacro __using__(_opts) do
quote do
import CoreWeb.Gettext
use Gettext, backend: CoreWeb.Gettext

unquote do
for {id, %{domain: domain}} <- Next.StartPages.pages() do
Expand Down
2 changes: 1 addition & 1 deletion core/bundles/self/lib/account/session_controller.ex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
defmodule Self.Account.SessionController do
use CoreWeb, :controller
import CoreWeb.Gettext
use Gettext, backend: CoreWeb.Gettext

alias Systems.Account

Expand Down
2 changes: 1 addition & 1 deletion core/bundles/self/lib/menu/items.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ defmodule Self.Menu.Items do
@behaviour CoreWeb.Menu.ItemsProvider

use CoreWeb, :verified_routes
import CoreWeb.Gettext
use Gettext, backend: CoreWeb.Gettext

@impl true
def values() do
Expand Down
2 changes: 1 addition & 1 deletion core/bundles/self/start_pages.ex
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ defmodule Self.StartPages do

defmacro __using__(_opts) do
quote do
import CoreWeb.Gettext
use Gettext, backend: CoreWeb.Gettext

unquote do
for {id, %{domain: domain}} <- Self.StartPages.pages() do
Expand Down
2 changes: 1 addition & 1 deletion core/config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ config :core, :assignment, external_panels: ~w(liss ioresearch generic)
config :core, :storage, services: ~w(builtin yoda)

config :core, BankingClient,
host: 'localhost',
host: "localhost",
port: 5555,
cacertfile: "../banking_proxy/certs/ca_certificate.pem",
certfile: "../banking_proxy/certs/client_certificate.pem",
Expand Down
20 changes: 15 additions & 5 deletions core/config/dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,25 @@ config :bcrypt_elixir, :log_rounds, 1
config :logger, level: :debug

# Configure your database
cacertfile = System.get_env("DB_CA_PATH")

verify_mode =
case System.get_env("DB_TLS_VERIFY") do
"verify_peer" -> :verify_peer
"verify_none" -> :verify_none
_ -> :verify_peer
end

config :core, Core.Repo,
username: "postgres",
password: "postgres",
database: "next_dev",
hostname: "localhost",
hostname: "db",
ssl: [
cacertfile: cacertfile,
verify: :verify_peer,
server_name_indication: to_charlist("db")
],
show_sensitive_data_on_connection_error: true,
pool_size: 10

Expand Down Expand Up @@ -77,10 +91,6 @@ config :core, Systems.Email.Mailer,

config :core, :apns_backend, Core.APNS.LoggingBackend

config :core,
:admins,
["[email protected]", "[email protected]"]

# # For Minio (local S3)
# config :ex_aws,
# scheme: "http://",
Expand Down
Loading
Loading