diff --git a/deploy/Dockerfile_image b/deploy/Dockerfile_image new file mode 100644 index 0000000..3258ea0 --- /dev/null +++ b/deploy/Dockerfile_image @@ -0,0 +1,3 @@ +FROM nginx:1.25 + +COPY ./imagestore/nginx.conf /etc/nginx/conf.d/ \ No newline at end of file diff --git a/deploy/imagestore/nginx.conf b/deploy/imagestore/nginx.conf new file mode 100644 index 0000000..1baf58c --- /dev/null +++ b/deploy/imagestore/nginx.conf @@ -0,0 +1,11 @@ +server { + listen 80; + # server_name example.com; # あなたのドメインに置き換えてください + + location / { + alias /src/image; + autoindex off; # ディレクトリ内のファイル一覧を表示する場合 + } + + # その他の設定は必要に応じて追加してください +} \ No newline at end of file