mirror of
https://github.com/Redume/Shirino.git
synced 2025-03-14 10:34:38 +03:00
chore: Add nginx
This commit is contained in:
parent
380b4cba1f
commit
df8fae1d7f
2 changed files with 42 additions and 1 deletions
|
@ -3,3 +3,15 @@ services:
|
|||
build: .
|
||||
image: ghcr.io/shirino/shirino:latest
|
||||
restart: unless-stopped
|
||||
nginx:
|
||||
image: nginx:latest
|
||||
ports:
|
||||
- '80:80'
|
||||
- '443:443'
|
||||
volumes:
|
||||
- ./nginx.conf:/etc/nginx/nginx.conf
|
||||
- ./CertSSL:/etc/nginx/ssl
|
||||
|
||||
volumes:
|
||||
shirino:
|
||||
driver: locale
|
29
nginx.conf
Normal file
29
nginx.conf
Normal file
|
@ -0,0 +1,29 @@
|
|||
events {}
|
||||
|
||||
http {
|
||||
server {
|
||||
listen 80;
|
||||
server_name shirino.redume.su;
|
||||
|
||||
return 301 https://$host$request_uri$is_args$args;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
http2 on;
|
||||
server_name shirino.redume.susu;
|
||||
|
||||
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_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_redirect off;
|
||||
proxy_buffering off;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue