do routing inside unit
This commit is contained in:
parent
ad3fdc4e9c
commit
2f254e348f
@ -93,17 +93,8 @@
|
|||||||
{{ nginx_config | default({}) | combine({
|
{{ nginx_config | default({}) | combine({
|
||||||
nextcloud_domain: {
|
nextcloud_domain: {
|
||||||
"locations": {
|
"locations": {
|
||||||
'~ ^\/(?:index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|oc[ms]-provider\/.+)\.php(?:$|\/)': {
|
|
||||||
"proxy_pass": "http://{}:9001".format(nextcloud_container)
|
|
||||||
},
|
|
||||||
'~ \.(?:css|js|woff2?|svg|gif|map)$': {
|
|
||||||
"proxy_pass": "http://{}:9002".format(nextcloud_container)
|
|
||||||
},
|
|
||||||
'~ \.(?:png|html|ttf|ico|jpg|jpeg|bcmap)$': {
|
|
||||||
"proxy_pass": "http://{}:9002".format(nextcloud_container)
|
|
||||||
},
|
|
||||||
'/': {
|
'/': {
|
||||||
"proxy_pass": "http://{}:9003".format(nextcloud_container)
|
"proxy_pass": "http://{}:9000".format(nextcloud_container)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user