Skip to content

hako の /pipe に入れるときの特別処理 #2

@yassi-github

Description

@yassi-github
  • dockerfile の shell を ENTRYPOINT にする
  • runscはホスト側に入れる
  • nginx conf で、ssl関連の設定を無効にして、hakoからのアクセスを生ipで受けるための設定(例のパワポ参照)を書き加える
  • static 以下のファイルに書かれている アクセスpath に /pipe prefixを追加する
  • main.py の app インスタンスを作っているところで root_path="/pipe", の行を追加する
  • systemd unit file を書くときはこのようにする:
[Unit]
Description=s-progress docker compose wrapper

[Service]
Type=simple
WorkingDirectory=/home/ysaigusa/enbicutter
Environment=PWD=/home/ysaigusa/enbicutter
ExecStart=/usr/local/bin/docker-compose up
ExecStop=/usr/local/bin/docker-compose down
Restart=always
User=ysaigusa

[Install]
WantedBy=multi-user.target

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions