Accel-Mart Plus 設定値リファレンス 第23版 2024-04-24

2.3. intra-mart設定値

Accel-Mart Plusでは、開通時にAccel-Mart Plus向けの設定を加えたIM-Jugglingプロジェクトが送付されます。
本項では、Accel-Mart Plus標準設定がされた設定ファイルについて記載します。

コラム

  • 本ドキュメント内では、環境毎に異なる設定値を %変数名% と表現します。
  • 黄色でハイライトされている部分については、製品標準からAccel-Mart Plus向けに設定変更されたものとなります。

注意

設定変更不可と記載した設定値の変更について

  • 変更する場合は、事前に検証を行い、問題がないことを確認してください。
  • 変更箇所を起因として発生した問題について、弊社では責任を負いかねます。

2.3.1. resin-web.xml(postgreSQL版)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<web-app xmlns="http://caucho.com/ns/resin" xmlns:resin="urn:java:com.caucho.resin">
    <character-encoding>UTF-8</character-encoding>

    <log-handler name="" class="jp.co.intra_mart.common.platform.log.handler.JDKLoggingOverIntramartLoggerHandler"/>
    <logger name="debug.com.sun.portal" level="warning" />

	<!-- im_service(im_asynchronous) -->
	<resource jndi-name="jca/work" type="jp.co.intra_mart.system.asynchronous.impl.executor.work.resin.ResinResourceAdapter" />
	<jsp>
		<recycle-tags>false</recycle-tags>
	</jsp>
	<database jndi-name="jdbc/system">
		<driver>
			<type>org.postgresql.ds.PGConnectionPoolDataSource</type>
			<url>jdbc:postgresql://%RDS_END_POINT%:%RDS_PORT%/iap_db_system</url>
			<user>%SYS_DB_USER%</user>
			<password>
				<resin:Password value="%SYS_DB_PASSWARD%"/>
		        </password>
			<preparedStatementCacheQueries>0</preparedStatementCacheQueries>
		</driver>
		<max-connections>100</max-connections>
		<prepared-statement-cache-size>0</prepared-statement-cache-size>
	</database>
	<database jndi-name="jdbc/tenant">
		<driver>
			<type>org.postgresql.ds.PGConnectionPoolDataSource</type>
			<url>jdbc:postgresql://%RDS_END_POINT%:%RDS_PORT%/iap_db_tenant</url>
			<user>%TEN_DB_USER%</user>
			<password>
				<resin:Password value="%TEN_DB_PASSWORD%"/>
		        </password>
			<preparedStatementCacheQueries>0</preparedStatementCacheQueries>
		</driver>
		<max-connections>100</max-connections>
		<prepared-statement-cache-size>0</prepared-statement-cache-size>
	</database>
	<session-config>
	    <reuse-session-id>false</reuse-session-id>
		<session-timeout>60</session-timeout>
	</session-config>

	<mime-mapping extension=".json" mime-type="application/json"/>
</web-app>
行番号 変数名 説明 設定変更可否
15,28 %RDS_END_POINT% 接続先RDBサーバ(RDS)のエンドポイント 変更不可
15,28 %RDS_PORT% 接続先RDBサーバ(RDS)ポート 変更不可
16 %SYS_DB_USER% システムデータベースのユーザID 変更不可
17 %SYS_DB_PASSWORD% システムデータベースのパスワード 変更可能
30 %TEN_DB_USER% テナントデータベースのユーザID 変更不可
31 %TEN_DB_PASSWORD% テナントデータベースのパスワード 変更可能

2.3.2. resin-web.xml(Oracle版)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<web-app xmlns="http://caucho.com/ns/resin" xmlns:resin="urn:java:com.caucho.resin">
    <character-encoding>UTF-8</character-encoding>

    <log-handler name="" class="jp.co.intra_mart.common.platform.log.handler.JDKLoggingOverIntramartLoggerHandler"/>
    <logger name="debug.com.sun.portal" level="warning" />

	<!-- im_service(im_asynchronous) -->
	<resource jndi-name="jca/work" type="jp.co.intra_mart.system.asynchronous.impl.executor.work.resin.ResinResourceAdapter" />
	<jsp>
		<recycle-tags>false</recycle-tags>
	</jsp>
	<database jndi-name="jdbc/system">
		<driver>
			<type>oracle.jdbc.pool.OracleConnectionPoolDataSource</type> 
		        <url>jdbc:oracle:thin:@//%RDS_END_POINT%:%RDS_PORT%/ORCL</url>
                        <user>%SYS_DB_USER%</user>
			<password>
				<resin:Password value="%SYS_DB_PASSWARD%"/>
		        </password>
                </driver>
		<max-connections>100</max-connections>
		<prepared-statement-cache-size>0</prepared-statement-cache-size>
	</database>
	<database jndi-name="jdbc/tenant">
		<driver>
			<type>oracle.jdbc.pool.OracleConnectionPoolDataSource</type>
                        <url>jdbc:oracle:thin:@//%RDS_END_POINT%:%RDS_PORT%/ORCL</url>
                        <user>%TEN_DB_USER%</user>
			<password>
				<resin:Password value="%TEN_DB_PASSWORD%"/>
		        </password>
                </driver>
		<max-connections>100</max-connections>
		<prepared-statement-cache-size>0</prepared-statement-cache-size>
	</database>
	<session-config>
	    <reuse-session-id>false</reuse-session-id>
		<session-timeout>60</session-timeout>
	</session-config>

	<mime-mapping extension=".json" mime-type="application/json"/>
</web-app>
行番号 変数名 説明 設定変更可否
15,27 %RDS_END_POINT% 接続先RDBサーバ(RDS)のエンドポイント 変更不可
15,27 %RDS_PORT% 接続先RDBサーバ(RDS)ポート 変更不可
16 %SYS_DB_USER% システムデータベースのユーザID 変更不可
18 %SYS_DB_PASSWORD% システムデータベースのパスワード 変更可能
28 %TEN_DB_USER% テナントデータベースのユーザID 変更不可
30 %TEN_DB_PASSWORD% テナントデータベースのパスワード 変更可能

2.3.3. data-source-mapping-config.xml

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
<?xml version="1.0" encoding="UTF-8"?>
<data-source-mapping-config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://intra-mart.co.jp/system/database/config/data-source-mapping-config"
    xsi:schemaLocation="http://intra-mart.co.jp/system/database/config/data-source-mapping-config ../schema/data-source-mapping-config.xsd ">
  <system-data-source>
    <resource-ref-name>java:comp/env/jdbc/system</resource-ref-name>
    <!-- WebSphere
    <resource-ref-name>jdbc/default</resource-ref-name>
    -->
  </system-data-source>
  <tenant-data-source>
    <tenant-id>default</tenant-id>
    <resource-ref-name>java:comp/env/jdbc/tenant</resource-ref-name>
    <!-- WebSphere
    <resource-ref-name>jdbc/default</resource-ref-name>
    -->
  </tenant-data-source>
</data-source-mapping-config>
行番号 説明 設定変更可否
6 システムデータベースとして利用するデータソースのリソース参照名 変更不可
13 システムデータベースとして利用するデータソースのリソース参照名 変更不可

2.3.4. network-agent-config.xml

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
<?xml version="1.0" encoding="UTF-8"?>
<network-agent-config
    xmlns="http://intra-mart.co.jp/system/service/client/config/network-agent-config" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://intra-mart.co.jp/system/service/client/config/network-agent-config ../schema/network-agent-config.xsd">

  <id>prototype</id>
  <bind-port>5200</bind-port>
  <port-range>2</port-range>
  <preferIPv4Stack>true</preferIPv4Stack>
  
  <TCP>
    <initial-hosts>
      <host address="%AP_SERVER_HOST%"/>
    </initial-hosts>
  </TCP>

</network-agent-config>
行番号 変数名 説明 備考 設定変更可否
14 %AP_SERVER_HOST% APサーバのサーバアドレス APサーバ台数分の記載有り 変更不可

2.3.5. server-context-config.xml

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
<?xml version="1.0" encoding="UTF-8"?>
<server-context-config
    xmlns="http://intra-mart.co.jp/system/platform/config/server-context-config"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://intra-mart.co.jp/system/platform/config/server-context-config ../schema/server-context-config.xsd">

  <home-directory>WEB-INF</home-directory>
  <work-directory>WEB-INF/work</work-directory>
  <log-directory>/opt/accel-mart/logs/intra-mart</log-directory>
  <server-charset>UTF-8</server-charset>

  <!-- base url. -->
  <base-url>https://%HOSTNAME%/%CONTEXT_PATH%</base-url>

</server-context-config>
行番号 説明 設定変更可否
9 ログファイルディレクトリ 変更不可
13 intra-mart Accel Platform のベースURL 変更不可

2.3.6. storage-config.xml

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?xml version="1.0" encoding="UTF-8"?>
<storage-config xmlns="http://jp/co/intra-mart/foundation/service/client/file/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jp/co/intra-mart/foundation/service/client/file/config ../schema/storage-config.xsd ">
  <charset>UTF-8</charset>
  <class-name>jp.co.intra_mart.system.service.client.file.ExternalStorageLocalFileImpl</class-name>
  <unable-charactors>
    <unable-charactor>\</unable-charactor>
    <unable-charactor>:</unable-charactor>
    <unable-charactor>*</unable-charactor>
    <unable-charactor>?</unable-charactor>
    <unable-charactor>&quot;</unable-charactor>
    <unable-charactor>&lt;</unable-charactor>
    <unable-charactor>&gt;</unable-charactor>
    <unable-charactor>|</unable-charactor>
  </unable-charactors>
  <storage-info>
    <root-path-name>/opt/accel-mart/iap_storage</root-path-name>
    <system-directory-name>system</system-directory-name>
    <public-directory-name>public</public-directory-name>
    <group-directory-name>groups</group-directory-name>
    <configuration-directory-name>conf</configuration-directory-name>
    <conpatible-directory-name>public</conpatible-directory-name>
    <storage-directory-name>storage</storage-directory-name>
    <temporary-directory-name>temp</temporary-directory-name>
  </storage-info>
  <synchronize-info>
    <synchronize-key>im_system_storage_synchronize_key</synchronize-key>
  </synchronize-info>
</storage-config>
行番号 説明 設定変更可否
16 ストレージのパス 変更不可

2.3.7. request-control-config.xml

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?xml version="1.0" encoding="UTF-8"?>
<request-control-config
    xmlns="http://intra-mart.co.jp/system/servlet/filter/xml/request_control/request-control-config"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://intra-mart.co.jp/system/servlet/filter/xml/request_control/request-control-config ../schema/request-control-config.xsd">

  <thread max="100"/>
  <accept queue="100">
    <query>
      <length max="0"/>
<!-- 
      <length max="10485760"/>
 -->
    </query>
  </accept>
  <synchronized queue="8">
    <query>
      <length min="1048576"/>
    </query>
  </synchronized>

</request-control-config>
行番号 説明 設定変更可否
7 サーバの同時処理制限 変更不可

2.3.8. locale-config/im-locale-default.xml

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
<?xml version="1.0" encoding="UTF-8"?>
<locale-config
    xmlns="http://intra_mart.co.jp/system/i18n/locale/config/locale-config"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://intra_mart.co.jp/system/i18n/locale/config/locale-config locale-config.xsd ">
  <locale name="ja">
    <encoding-name>UTF-8</encoding-name>
  </locale>
  <locale name="en">
    <encoding-name>UTF-8</encoding-name>
  </locale>
  <locale name="zh_CN">
    <encoding-name>UTF-8</encoding-name>
  </locale>
</locale-config>
行番号 説明 備考 設定変更可否
6-8 日本語(ja)ロケール 設定 申込時 システムロケール設定でja指定の場合有効 変更可能
9-11 英語(en)ロケール 設定 申込時 システムロケール設定でen指定の場合有効 変更可能
12-14 中国語(簡体字)(zh_CN)ロケール 設定 申込時 システムロケール設定でzh_CN指定の場合有効 変更可能

2.3.9. session-auto-keep-config/default.xml

1
2
3
4
5
6
<?xml version="1.0" encoding="UTF-8"?>
<session-auto-keep-config
  xmlns="http://www.intra-mart.jp/theme/session-auto-keep-config"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.intra-mart.jp/theme/session-auto-keep-config ../../schema/session-auto-keep-config.xsd"
  session-auto-keep="true"/>
行番号 説明 設定変更可否
6 セッション維持機能の有効化 変更可能

2.3.10. hazelcast-config.xml

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?xml version="1.0" encoding="UTF-8"?>
<hazelcast-config
  xmlns="http://intra-mart.co.jp/session-store/hazelcast-config"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://intra-mart.co.jp/session-store/hazelcast-config ../schema/hazelcast-config.xsd">

  <base>
    <id>im_session_store</id>
  </base>

  <network>
    <port port-count="2">5701</port>
    <join>
      <TCP>
        <member-list>
          <member>%AP_SERVER_IP%</member>
        </member-list>
      </TCP>
    </join>
  </network>

  <store>
    <max-memory-size>1024</max-memory-size>
    <persistence enabled="false">
      <jndi-name>java:comp/env/jdbc/iap-session</jndi-name>
    </persistence>
  </store>

</hazelcast-config>
行番号 変数名 説明 備考 設定変更可否
6 %AP_SERVER_IP% APサーバのIPアドレス APサーバ台数分の記載有り 変更不可

2.3.11. session-store-config.xml

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?xml version="1.0" encoding="UTF-8"?>
<session-store-config
  xmlns="http://intra-mart.co.jp/session-store/session-store-config"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://intra-mart.co.jp/session-store/session-store-config ../schema/session-store-config.xsd">
  
  <reaper-interval>300</reaper-interval>
  <forced-removal-duration>10800</forced-removal-duration>
  <session-config>
    <session-timeout>60</session-timeout>
    <session-versioning>true</session-versioning>
    <!--
    <cookie-config>
      <name>JSESSIONID</name>
      <domain>
        <name>localhost</name>
      </domain>
      <path>/imart</path>
      <max-age>0</max-age>
      <http-only>true</http-only>
      <secure>true</secure>
    </cookie-config>
    -->
  </session-config>
</session-store-config>
行番号 説明 設定変更可否
10 resinのセッションタイムアウト値 変更可能

2.3.12. cassandra-config.xml

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
<?xml version="1.0" encoding="UTF-8"?>
<cassandra-config xmlns="http://www.intra-mart.jp/imbox/cassandra-config"
		xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
		xsi:schemaLocation="http://www.intra-mart.jp/imbox/cassandra-config ../schema/cassandra-config.xsd ">

	<cluster-name>IMBox Cluster</cluster-name>
	<replication-factor>1</replication-factor>
	<keyspace>imart</keyspace>
	<authentication enabled="true">
		<username>%CASSANDRA_USERNAME%</username>
		<password>%CASSANDRA_PASSWORD%</password>
	</authentication>
	<hosts>
		<host>%CASSANDRA_HOST%:9160</host>
	</hosts>
</cassandra-config>
行番号 変数名 説明 設定変更可否
10 %CASSANDRA_USERNAME% CassandraのユーザID 変更不可
11 %CASSANDRA_PASSWORD% Cassandraのパスワード 変更不可
14 %CASSANDRA_HOST% CassandraのIPアドレス 変更不可

2.3.13. solr-config.xml

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
<?xml version="1.0" encoding="UTF-8"?>
<solr-config xmlns="http://intra-mart.co.jp/system/solr/config/solr-config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://intra-mart.co.jp/system/solr/config/solr-config ../schema/solr-config.xsd ">

	<group name="default">
		<searcher>
			<method>POST</method>
			<distribution-policy>FIRST</distribution-policy>
			<servers>
				<url>http://10.20.0.110:8081/solr/default</url>
			</servers>
		</searcher>
		<indexer>
			<distribution-policy>IDHASH</distribution-policy>
			<servers>
				<url>http://10.20.0.110:8081/solr/default</url>
			</servers>
		</indexer>
		<extractor ref="im_default" />
	</group>

</solr-config>
行番号 説明 設定変更可否
9 Searcherの接続先URL 変更不可
15 indexerの接続先URL 変更不可

2.3.14. ip-address-detector-config.xml

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
<?xml version="1.0" encoding="UTF-8"?>
<ip-address-detector-config xmlns="http://www.intra-mart.jp/http/utility/ip-address-detector-config"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.intra-mart.jp/http/utility/ip-address-detector-config ip-address-detector-config.xsd">

  <remote-address>
    <http-header delimiter="," position="first">X-Forwarded-For</http-header>
  </remote-address>

</ip-address-detector-config>
行番号 説明 設定変更可否
7 リモートホストのIPアドレス取得元となるHTTPヘッダ 変更不可

2.3.15. spreadsheet-config.xml

コラム

新規申込時のintra-mart Accel Platformのバージョンが2019Spring以降のものに含まれる設定となります。

1
2
3
4
5
6
7
8
9
<?xml version="1.0" encoding="UTF-8"?>
<spreadsheet-config xmlns="http://intra-mart.co.jp/system/spreadsheet/spreadsheet-config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://intra-mart.co.jp/system/spreadsheet/spreadsheet-config ../schema/spreadsheet-config.xsd ">
  <licenses>
    <license url="http://%HOST_NAME%/%CONTEXT_PATH%"><![CDATA[%SPREAD_JS_LICENCE%]]></license>
  </licenses>
  <designer-licenses>
    <designer-license url="http://%HOST_NAME%/%CONTEXT_PATH%"><![CDATA[%SPREAD_JS_DESIGNER_LICENCE%]]></designer-license>
  </designer-licenses>
</spreadsheet-config>
行番号 変数名 説明 設定変更可否
4 %HOST_NAME% 個社利用環境のホスト名(ドメイン名) 変更可能
4 %CONTEXT_PATH% 個社利用環境のコンテキストパス(アプリケーション名) 変更可能
4 %SPREAD_JS_LICENCE% 払い出し済みspreadJSライセンスキー 変更可能
7 %HOST_NAME% 個社利用環境のホスト名(ドメイン名) 変更可能
7 %CONTEXT_PATH% 個社利用環境のコンテキストパス(アプリケーション名) 変更可能
7 %SPREAD_JS_DESIGNER_LICENCE% 払い出し済みspreadJS designerライセンスキー 変更可能

2.3.16. theme-customize-config.xml

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
<?xml version="1.0" encoding="UTF-8"?>
<theme-customize-config xmlns="http://www.intra-mart.jp/theme/theme/customize" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.intra-mart.jp/theme/theme/customize ../schema/theme-creator-config.xsd ">
  <!-- 
   maven のパスを指定してください


   	 Windows: C:/Users/imart/apache-maven-3.x/bin/mvn.bat
     Linux: /home/imart/apache-maven-3.x/bin/mvn
   -->
  <mvn-path>%MAVEN_PATH%</mvn-path>
  <!-- 
   ant のパスを指定してください


   	 Windows: C:/Users/imart/apache-ant-1.8.x/bin/ant.bat
     Linux: /home/imart/apache-ant-1.8.x/bin/ant
   -->
  <ant-path>%ANT_PATH%</ant-path>
</theme-customize-config>
行番号 変数名 説明 設定変更可否
10 %MAVEN_PATH% mavenインストールPATH 変更不可
18 %ANT_PATH% antインストールPATH 変更不可

2.3.17. response-header-config/default.xml

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
<?xml version="1.0" encoding="UTF-8"?>
<response-header-config
 xmlns="http://intra-mart.co.jp/system/servlet/filter/xml/response_header/response-header-config"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://intra-mart.co.jp/system/servlet/filter/xml/response_header/response-header-config response-header-config.xsd ">
   <!-- Avoid IE Content Sniffing XSS Attacks -->
   <static-response-header name="X-Content-Type-Options" value="nosniff"/>
   <static-response-header name="X-Frame-Options" value="sameorigin"/>
   <static-response-header name="X-Robots-Tag" value="noindex, nofollow"/>
</response-header-config>
行番号 説明 設定変更可否
7 レスポンスヘッダの追加(X-Content-Type-Options) 変更可能
8 レスポンスヘッダの追加(X-Frame-Options) 変更可能
9 レスポンスヘッダの追加(X-Robots-Tag) 変更可能

2.3.18. cryption-config/cryption-config.xml

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cryption-config xmlns="http://intra-mart.co.jp/system/security/cryption">

    <!-- 該当するカテゴリがない場合使われます -->
    <cryption category="default" default="true">
        <cryption-class>jp.co.intra_mart.foundation.security.cryption.standard.AESCryption</cryption-class>
    </cryption>

    <!-- アカウントパスワード用 -->
    <cryption category="account">
        <cryption-class>jp.co.intra_mart.foundation.security.cryption.standard.AESCryption</cryption-class>
    </cryption>

    <!-- システム管理者パスワード用 -->
    <cryption category="administrator">
        <cryption-class>jp.co.intra_mart.foundation.security.cryption.standard.AESCryption</cryption-class>
    </cryption>

</cryption-config>
行番号 説明 設定変更可否
6 デフォルトカテゴリ用の暗号化実装クラスの設定 変更可能
11 アカウントパスワード用の暗号化実装クラスの設定 変更可能
16 システム管理者パスワード用の暗号化実装クラスの設定 変更可能

2.3.19. rewriting-mail-address-config.xml

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
<?xml version="1.0" encoding="UTF-8"?>
<rewriting-mail-address-config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://intra-mart.co.jp/system/mail/address/config/rewriting-mail-address-config"
    xsi:schemaLocation="http://intra-mart.co.jp/system/mail/address/config/rewriting-mail-address-config ../schema/rewriting-mail-address-config.xsd ">

  <from-address-rule enable="true">
    <!-- Example of rewriting to a fixed address. -->

    <address regex="^.*$" replacement="no-reply@mail.%HOSTNAME%.%DOMAIN%">
      <personal regex="^.*$" replacement="no-reply@mail.%HOSTNAME%.%DOMAIN%" />

    </address>
    <!-- Example of rewriting domain part only. -->
    <!--
    <address regex="@.+$" replacement="@example.com">
    </address>
    -->
  </from-address-rule>

</rewriting-mail-address-config>
行番号 説明 設定変更可否
6 有効、無効 変更可能
9-10 ホストネーム、ドメインネーム 変更可能

2.3.20. im-notice-mobile-config.xml

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?xml version="1.0" encoding="UTF-8"?>

<im-notice-mobile-config
    xmlns="http://www.intra-mart.jp/notice/mobile/config/im-notice-mobile-config"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.intra-mart.jp/notice/mobile/config/im-notice-mobile-config ../schema/im-notice-mobile-config.xsd">

    <proxy enable="false">
        <host></host>
        <port xsi:nil="true"></port>
        <username></username>
        <password></password>
        <workstation></workstation>
        <domain></domain>
    </proxy>

    <asns name="asns-apns">
        <endpoint>sns.ap-northeast-1.amazonaws.com</endpoint>
        <platform-application-arn>%PLATFORM_APPLICATION_ARN_IOS%</platform-application-arn>
        <iam-role-arn>%IAM_ROLE_ARN%</iam-role-arn>
    </asns>

    <asns name="asns-fcm">
        <endpoint>sns.ap-northeast-1.amazonaws.com</endpoint>
        <platform-application-arn>%PLATFORM_APPLICATION_ARN_ANDROID%</platform-application-arn>
        <iam-role-arn>%IAM_ROLE_ARN%</iam-role-arn>
        <fcm-project-id>%FCM_PROJECT_ID%</fcm-project-id>
        <fcm-application-id>%FCM_APPLICATION_ID%</fcm-application-id>
        <fcm-api-key>%FCM_API_KEY%</fcm-api-key>
        <fcm-sender-id>%FCM_SENDER_ID%</fcm-sender-id>
    </asns>

    <asns name="asns-baidu">
        <endpoint>sns.ap-northeast-1.amazonaws.com</endpoint>
        <platform-application-arn></platform-application-arn>
        <access-key></access-key>
        <secret-key></secret-key>
        <baidu-api-key></baidu-api-key>
    </asns>

    <fcm name="fcm">
        <url>https://fcm.googleapis.com/v1/projects/%REPLACE_WITH_PROJECT_ID%/messages:send</url>
	<project-id></project-id>
	<application-id></application-id>
	<api-key></api-key>
	<credentials-file></credentials-file>
	<sender-id></sender-id>
    </fcm>

    <fcm name="legacy-fcm">
        <url>https://fcm.googleapis.com/fcm/send</url>
        <project-id></project-id>
        <application-id></application-id>
        <api-key></api-key>
        <server-key></server-key>
        <sender-id></sender-id>
    </fcm>

    <push type="android" engine="asns-fcm" />
    <push type="ios" engine="asns-apns" />

    <max-push-subject-length>30</max-push-subject-length>
    <max-push-body-length>70</max-push-body-length>
</im-notice-mobile-config>
行番号 変数名 説明 設定変更可否
19 %PLATFORM_APPLICATION_ARN_IOS% iOSアプリへの通知に用いるAmazon SNSプラットフォームアプリケーションのARN 変更不可
20,26 %IAM_ROLE_ARN% 通知に用いるAWS IAMロールのARN 変更不可
25 %PLATFORM_APPLICATION_ARN_ANDROID% Androidアプリへの通知に用いるAmazon SNSプラットフォームアプリケーションのARN 変更不可
27 %FCM_PROJECT_ID% Firebaseで作成したプロジェクトのプロジェクトID 変更不可
28 %FCM_APPLICATION_ID% Firebaseプロジェクトに追加したAndroidアプリのアプリケーションID 変更不可
29 %FCM_API_KEY% Firebaseで作成したプロジェクトのウェブAPIキー 変更不可
30 %FCM_SENDER_ID% Firebaseの送信者ID 変更不可
59 - 通知方法の設定 変更不可

コラム

im-notice-mobile-config.xml の設定内容や設定方法の詳細については、以下をご参照ください。