mirror of
https://github.com/d9pouces/id_configurator.git
synced 2026-11-09 01:47:21 +01:00
a8143b61b1
Signed-off-by: d9pouces <github@19pouces.net>
23 lines
770 B
Plaintext
23 lines
770 B
Plaintext
server {
|
|
listen 8443 ssl default_server;
|
|
server_name _;
|
|
|
|
ssl_certificate /etc/nginx/certs/repo-server.crt.pem;
|
|
ssl_certificate_key /etc/nginx/certs/repo-server.key.pem;
|
|
|
|
root /srv;
|
|
autoindex off;
|
|
|
|
# The service index bakes in a __BASE_URL__ placeholder for its "@id"
|
|
# fields, since the host:port this fixture is actually reached on is
|
|
# only known once tox-docker starts the container, not at image-build
|
|
# time. $http_host reflects exactly what the client (nuget) used to
|
|
# connect, e.g. host.docker.internal:55123.
|
|
location = /index.json {
|
|
default_type application/json;
|
|
sub_filter '__BASE_URL__' 'https://$http_host';
|
|
sub_filter_once off;
|
|
sub_filter_types application/json;
|
|
}
|
|
}
|