Skip to content

Commit

Permalink
Add support for the Microsoft compliance domain
Browse files Browse the repository at this point in the history
  • Loading branch information
glpatcern committed Mar 13, 2024
1 parent 02e3222 commit 43633d2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/core/wopi.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ def checkFileInfo(fileid, acctok):
fmd['UserInfo'] = uinfo
if srv.config.get('general', 'earlyfeatures', fallback='False').upper() == 'TRUE':
fmd['AllowEarlyFeatures'] = True
fmd['ComplianceDomainPrefix'] = srv.config.get('general', 'compliancedomain', fallback='euc')

# populate app-specific metadata
# the following is to enable the 'Edit in Word/Excel/PowerPoint' (desktop) action (probably broken)
Expand Down
8 changes: 7 additions & 1 deletion wopiserver.conf
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,16 @@ codeofficetypes = .odt .ott .ods .ots .odp .otp .odg .otg .doc .dot .xls .xlt .x
#wopiproxysecretfile = /path/to/your/shared-key-file
#proxiedappname = Name of your proxied app

# A flag to enable the business flow with Microsoft Office as detailed in:
# A flag to disable the business flow with Microsoft Office 365 as detailed in:
# https://learn.microsoft.com/en-us/microsoft-365/cloud-storage-partner-program/online/scenarios/business
# Note that this must stay enabled if this wopiserver is to serve Microsoft Office 365.
#businessflow = True

# Configure the regional compliance domain for Microsoft, as detailed in:
# https://learn.microsoft.com/en-us/microsoft-365/cloud-storage-partner-program/rest/files/checkfileinfo/checkfileinfo-csppp#compliancedomainprefix
# The default value is the EU area.
#compliancedomain = euc

# A flag to enable early features with Microsoft Office
#earlyfeatures = False

Expand Down

0 comments on commit 43633d2

Please sign in to comment.