Changeset View
Changeset View
Standalone View
Standalone View
docker/conf/nginx.conf
Show First 20 Lines • Show All 125 Lines • ▼ Show 20 Lines | location /cmak { | ||||
proxy_pass $upstream; | proxy_pass $upstream; | ||||
proxy_set_header Host $host; | proxy_set_header Host $host; | ||||
rewrite ^/cmak/(.*)$ /$1 break; | rewrite ^/cmak/(.*)$ /$1 break; | ||||
sub_filter "href=\"/" "href=\"/cmak/"; | sub_filter "href=\"/" "href=\"/cmak/"; | ||||
sub_filter "src=\"/" "src=\"/cmak/"; | sub_filter "src=\"/" "src=\"/cmak/"; | ||||
sub_filter "action=\"/" "action=\"/cmak/"; | sub_filter "action=\"/" "action=\"/cmak/"; | ||||
sub_filter_once off; | sub_filter_once off; | ||||
} | } | ||||
location /mailhog { | |||||
set $upstream "http://mailhog:8025"; | |||||
proxy_pass $upstream; | |||||
proxy_set_header Host $host; | |||||
proxy_http_version 1.1; | |||||
proxy_set_header Upgrade $http_upgrade; | |||||
proxy_set_header Connection "Upgrade"; | |||||
rewrite ^/mailhog/(.*)$ /$1 break; | |||||
} | |||||
} | } | ||||
} | } |