Include template dev config file, ignore the one actually being used

This commit is contained in:
Brian Picciano 2023-07-27 14:08:43 +02:00
parent cdd0eacdd8
commit ef8c5827a0
5 changed files with 20 additions and 34 deletions

View File

@ -1,33 +0,0 @@
origin:
store_dir_path: /tmp/domani_dev_env/origin
domain:
store_dir_path: /tmp/domani_dev_env/domain
builtins:
bar:
kind: git
url: a
branch_name: b
public: true
service:
http:
form_method: GET
proxied_domains:
foo:
url: http://127.0.0.1:9000
request_headers:
- name: x-foo
value: BAR
- name: host
value: hi
- name: user-agent
value: ""
gemini:
proxied_domains:
mediocregopher.com:
url: gemini://127.0.0.1:1965
passphrase: foobar
dns_records:
- kind: A
addr: 127.0.0.1
- kind: AAAA
addr: ::1

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
/target /target
.cargo .cargo
/result /result
config.yml

View File

@ -153,6 +153,7 @@ In order to open a shell with all necessary tooling (expected rust toolchain
versions, etc...) simply do: versions, etc...) simply do:
``` ```
cp config.yml.tpl config.yml
nix develop nix develop
``` ```

14
config.yml.tpl Normal file
View File

@ -0,0 +1,14 @@
# This is an example configuration file intended for use in development.
origin:
store_dir_path: /tmp/domani_dev_env/origin
domain:
store_dir_path: /tmp/domani_dev_env/domain
service:
passphrase: foobar
primary_domain: localhost
dns_records:
- kind: A
addr: 127.0.0.1
- kind: AAAA
addr: ::1

View File

@ -48,8 +48,11 @@
pkgs.nmap # ncat pkgs.nmap # ncat
]; ];
shellHook = '' shellHook = ''
source $(pwd)/.env.dev
export CARGO_HOME=$(pwd)/.cargo export CARGO_HOME=$(pwd)/.cargo
if [ -f "config.yml" ]; then
export DOMANI_CONFIG_PATH=config.yml
fi
''; '';
} // opensslEnv); } // opensslEnv);
}); });