constant.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. import i18n from '@/locales'
  2. export const dict = {
  3. protocolArr: [
  4. { id: 'tcp', name: 'TCP' },
  5. { id: 'udp', name: 'UDP' },
  6. ],
  7. diskTypeArr: [
  8. { id: 'local', name: i18n.t('aice.local_disk') },
  9. ],
  10. }
  11. export const portMappings = [
  12. {
  13. container_port: -1,
  14. envs: [
  15. {
  16. key: 'WOLF_HTTPS_PORT',
  17. value_from: 'port',
  18. },
  19. ],
  20. first_port_offset: 0,
  21. protocol: 'tcp',
  22. },
  23. {
  24. container_port: -1,
  25. envs: [
  26. {
  27. key: 'WOLF_HTTP_PORT',
  28. value_from: 'port',
  29. },
  30. ],
  31. first_port_offset: 5,
  32. protocol: 'tcp',
  33. },
  34. {
  35. container_port: -1,
  36. envs: [
  37. {
  38. key: 'WOLF_CONTROL_PORT',
  39. value_from: 'port',
  40. },
  41. ],
  42. first_port_offset: 15,
  43. protocol: 'udp',
  44. },
  45. {
  46. container_port: -1,
  47. envs: [
  48. {
  49. key: 'WOLF_VIDEO_PING_PORT',
  50. value_from: 'port',
  51. },
  52. ],
  53. first_port_offset: 116,
  54. protocol: 'udp',
  55. },
  56. {
  57. container_port: -1,
  58. envs: [
  59. {
  60. key: 'WOLF_AUDIO_PING_PORT',
  61. value_from: 'port',
  62. },
  63. ],
  64. first_port_offset: 216,
  65. protocol: 'udp',
  66. },
  67. {
  68. container_port: -1,
  69. envs: [
  70. {
  71. key: 'WOLF_RTSP_SETUP_PORT',
  72. value_from: 'port',
  73. },
  74. ],
  75. first_port_offset: 26,
  76. protocol: 'tcp',
  77. },
  78. ]