고급 사용자 지정 > ThingView 위젯에서 작동하도록 ThingWorx 서버 구성
  
ThingView 위젯에서 작동하도록 ThingWorx 서버 구성
ThingView 위젯은 WebAssembly 기술을 사용하여 3D 그래픽을 렌더링합니다. 브라우저에서 3D 데이터를 보면 브라우저에서 ThingView WebAssembly 파일을 다운로드합니다. 브라우저의 WebAssembly 파일 다운로드 및 초기화를 최적화하려면 서버에 WebAssembly MIME 유형을 구성합니다.
Apache Tomcat 서버를 구성하려면 web.xmlserver.xml 파일을 편집합니다.
1. 편집을 위해 <Apache_Tomcat_Installation>/conf/web.xml 파일을 엽니다. 파일에 다음 코드가 포함되어 있는지 확인합니다.
<mime-mapping>
<extension>wasm</extension>
<mime-type>application/wasm</mime-type>
</mime-mapping>
2. 편집할 <Apache_Tomcat_Installation>/conf/server.xml 파일을 엽니다. 다음 예와 같이 compressableMimeType 속성에 application/wasm MIME 유형이 포함되어 있는지 확인합니다.
<Connector port="8080" protocol="org.apache.coyote.http11.Http11NioProtocol"
connectionTimeout="20000"
redirectPort="8445"
compression="on"
compressionMinSize="1024"
compressableMimeType="application/wasm,text/html,text/xml,text/plain,text/css,text/javascript,application/javascript"/>