inital commit
This commit is contained in:
commit
0978b41afd
20 changed files with 392 additions and 0 deletions
27
nginx/dev/default.conf
Normal file
27
nginx/dev/default.conf
Normal file
|
@ -0,0 +1,27 @@
|
|||
server {
|
||||
listen 80;
|
||||
|
||||
location / {
|
||||
return 302 /ghost/;
|
||||
}
|
||||
|
||||
location /ghost/ {
|
||||
proxy_pass http://ghost_dev:2368/;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
}
|
||||
|
||||
location /forgejo/ {
|
||||
proxy_pass http://forgejo_dev:3000/;
|
||||
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;
|
||||
|
||||
sub_filter 'href="/' 'href="/forgejo/';
|
||||
sub_filter 'src="/' 'src="/forgejo/';
|
||||
sub_filter_once off;
|
||||
|
||||
proxy_set_header Accept-Encoding "";
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue