Skip to content

Commit

Permalink
deploy: 部分静态网页转换部署方式
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryJi529 committed Jun 19, 2023
1 parent a405c54 commit e249b8e
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions scripts/deploy/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ services:
- morningstar_nginx_data:/etc/letsencrypt
- morningstar_django_static:/apps/django/static
- morningstar_django_media:/apps/django/media
- nginx/www:/usr/share/nginx/html/www/
restart: always
ports:
- "80:80"
Expand Down
6 changes: 6 additions & 0 deletions scripts/deploy/nginx/conf/main.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,15 @@ server {
location /media {
alias /apps/django/media;
}

location /google {
rewrite ^/(.*) https://www.google.com.hk/ permanent;
}

location /fql {
root /usr/share/nginx/html/www/fql;
}

location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion vercel/_fql/.gitignore

This file was deleted.

0 comments on commit e249b8e

Please sign in to comment.