mirror of
https://github.com/Redume/Shirino.git
synced 2025-04-02 18:57:34 +03:00
Compare commits
3 commits
ed493b862e
...
3d6c6b11ec
Author | SHA1 | Date | |
---|---|---|---|
3d6c6b11ec | |||
288996f226 | |||
f751d0f893 |
4 changed files with 9 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
FROM python:3.12
|
||||
FROM python:3.12-alpine
|
||||
|
||||
WORKDIR /shirino
|
||||
|
||||
|
|
|
@ -3,6 +3,9 @@ services:
|
|||
build: .
|
||||
image: ghcr.io/shirino/shirino:latest
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- './config.yaml:/config.yaml'
|
||||
|
||||
nginx:
|
||||
image: nginx:latest
|
||||
ports:
|
||||
|
@ -14,4 +17,4 @@ services:
|
|||
|
||||
volumes:
|
||||
shirino:
|
||||
driver: locale
|
||||
driver: local
|
2
main.py
2
main.py
|
@ -49,7 +49,7 @@ def main() -> None:
|
|||
|
||||
setup_application(app, dp, bot=bot)
|
||||
|
||||
web.run_app(app, host='127.0.0.1', port=8080)
|
||||
web.run_app(app, host='0.0.0.0', port=443)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
@ -3,7 +3,7 @@ events {}
|
|||
http {
|
||||
server {
|
||||
listen 80;
|
||||
server_name shirino.redume.su;
|
||||
server_name example.com;
|
||||
|
||||
return 301 https://$host$request_uri$is_args$args;
|
||||
}
|
||||
|
@ -11,13 +11,13 @@ http {
|
|||
server {
|
||||
listen 443 ssl;
|
||||
http2 on;
|
||||
server_name shirino.redume.susu;
|
||||
server_name example.com;
|
||||
|
||||
ssl_certificate /etc/nginx/ssl/fullchain.pem;
|
||||
ssl_certificate_key /etc/nginx/ssl/privkey.pem;
|
||||
|
||||
location /webhook {
|
||||
proxy_pass http://127.0.0.1:8080;
|
||||
proxy_pass http://shirino:443;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue