flashii.net.conf

| about 1 month ago |
32
|
| View Raw
  1. 1
    server {
  2. 2
    listen 80;
  3. 3
    listen 443 ssl http2;
  4. 4
     
  5. 5
    listen [::]:80;
  6. 6
    listen [::]:443 ssl http2;
  7. 7
     
  8. 8
    root /www/flashii.net/public;
  9. 9
    server_name flashii.net i.flashii.net;
  10. 10
    index index.php index.html;
  11. 11
     
  12. 12
    error_page 400 /error-400.html;
  13. 13
    error_page 401 /error-401.html;
  14. 14
    error_page 402 /error-402.html;
  15. 15
    error_page 403 /error-403.html;
  16. 16
    error_page 404 /error-404.html;
  17. 17
    error_page 405 /error-405.html;
  18. 18
    error_page 410 /error-410.html;
  19. 19
    error_page 451 /error-451.html;
  20. 20
    error_page 500 /error-500.html;
  21. 21
    error_page 502 /error-502.html;
  22. 22
    error_page 503 /error-503.html;
  23. 23
     
  24. 24
    access_log /var/log/nginx/access-flashii.net.log;
  25. 25
    error_log /var/log/nginx/error-flashii.net.log;
  26. 26
     
  27. 27
    location / {
  28. 28
    try_files $uri $uri/ /index.php?$query_string;
  29. 29
    }
  30. 30
     
  31. 31
    location ~* \.(eot|otf|ttf|woff|woff2)$ {
  32. 32
    add_header Access-Control-Allow-Origin *;
  33. 33
    }
  34. 34
     
  35. 35
    location = /.well-known/did.json {
  36. 36
    add_header Access-Control-Allow-Origin *;
  37. 37
    }
  38. 38
     
  39. 39
    location /images {
  40. 40
    add_header Access-Control-Allow-Origin *;
  41. 41
    }
  42. 42
     
  43. 43
    location /msz-storage {
  44. 44
    add_header Access-Control-Allow-Origin *;
  45. 45
    alias /www/flashii.net/store;
  46. 46
    internal;
  47. 47
    }
  48. 48
     
  49. 49
    location /_storage {
  50. 50
    alias /www/flashii.net/storage;
  51. 51
    internal;
  52. 52
    }
  53. 53
     
  54. 54
    set $switch_https "$scheme$http_upgrade_insecure_requests";
  55. 55
    if ($switch_https = "http1") {
  56. 56
    return 301 https://$host$request_uri;
  57. 57
    }
  58. 58
     
  59. 59
    include global.conf;
  60. 60
    include ssl/flashii.net.conf;
  61. 61
    include php/flashii.net.conf;
  62. 62
    }
  63. 63
     
  64. 64
    server {
  65. 65
    listen 443 ssl http2;
  66. 66
    listen [::]:443 ssl http2;
  67. 67
     
  68. 68
    root /www/flashii.net/public;
  69. 69
    server_name api.flashii.net;
  70. 70
    index index.php index.html;
  71. 71
     
  72. 72
    error_page 400 /error-400.html;
  73. 73
    error_page 401 /error-401.html;
  74. 74
    error_page 402 /error-402.html;
  75. 75
    error_page 403 /error-403.html;
  76. 76
    error_page 404 /error-404.html;
  77. 77
    error_page 405 /error-405.html;
  78. 78
    error_page 410 /error-410.html;
  79. 79
    error_page 451 /error-451.html;
  80. 80
    error_page 500 /error-500.html;
  81. 81
    error_page 502 /error-502.html;
  82. 82
    error_page 503 /error-503.html;
  83. 83
     
  84. 84
    access_log /var/log/nginx/access-api.flashii.net.log;
  85. 85
    error_log /var/log/nginx/error-api.flashii.net.log;
  86. 86
     
  87. 87
    location / {
  88. 88
    try_files $uri $uri/ /index.php?$query_string;
  89. 89
    }
  90. 90
     
  91. 91
    include global.conf;
  92. 92
    include ssl/flashii.net.conf;
  93. 93
    include php/flashii.net.conf;
  94. 94
    }
  95. 95
     
  96. 96
    server {
  97. 97
    listen 80;
  98. 98
    listen [::]:80;
  99. 99
    server_name api.flashii.net;
  100. 100
    include global.conf;
  101. 101
    return 301 https://$host$request_uri;
  102. 102
    }
  103. 103
     
  104. 104
    server {
  105. 105
    listen 80;
  106. 106
    listen 443 ssl http2;
  107. 107
     
  108. 108
    listen [::]:80;
  109. 109
    listen [::]:443 ssl http2;
  110. 110
     
  111. 111
    root /www/flashii.net/public;
  112. 112
    server_name i.fii.moe;
  113. 113
    index index.php index.html;
  114. 114
     
  115. 115
    error_page 400 /error-400.html;
  116. 116
    error_page 401 /error-401.html;
  117. 117
    error_page 402 /error-402.html;
  118. 118
    error_page 403 /error-403.html;
  119. 119
    error_page 404 /error-404.html;
  120. 120
    error_page 405 /error-405.html;
  121. 121
    error_page 410 /error-410.html;
  122. 122
    error_page 451 /error-451.html;
  123. 123
    error_page 500 /error-500.html;
  124. 124
    error_page 502 /error-502.html;
  125. 125
    error_page 503 /error-503.html;
  126. 126
     
  127. 127
    access_log /var/log/nginx/access-i.fii.moe.log;
  128. 128
    error_log /var/log/nginx/error-i.fii.moe.log;
  129. 129
     
  130. 130
    location / {
  131. 131
    try_files $uri $uri/ /index.php?$query_string;
  132. 132
    }
  133. 133
     
  134. 134
    location /_storage {
  135. 135
    alias /www/flashii.net/storage;
  136. 136
    internal;
  137. 137
    }
  138. 138
     
  139. 139
    set $switch_https "$scheme$http_upgrade_insecure_requests";
  140. 140
    if ($switch_https = "http1") {
  141. 141
    return 301 https://$host$request_uri;
  142. 142
    }
  143. 143
     
  144. 144
    include global.conf;
  145. 145
    include ssl/fii.moe.conf;
  146. 146
    include php/flashii.net.conf;
  147. 147
    }
  148. 148
     
  149. 149
    server {
  150. 150
    listen 80;
  151. 151
    listen 443 ssl http2;
  152. 152
     
  153. 153
    listen [::]:80;
  154. 154
    listen [::]:443 ssl http2;
  155. 155
     
  156. 156
    server_name www.flashii.net test.flashii.net id.flashii.net eeprom.flashii.net;
  157. 157
     
  158. 158
    include global.conf;
  159. 159
    include ssl/flashii.net.conf;
  160. 160
     
  161. 161
    return 301 $scheme://flashii.net$request_uri;
  162. 162
    }
  163. 163
     
  164. 164
    server {
  165. 165
    listen 80;
  166. 166
    listen 443 ssl http2;
  167. 167
     
  168. 168
    listen [::]:80;
  169. 169
    listen [::]:443 ssl http2;
  170. 170
     
  171. 171
    server_name forum.flashii.net;
  172. 172
     
  173. 173
    include global.conf;
  174. 174
    include ssl/flashii.net.conf;
  175. 175
     
  176. 176
    return 302 $scheme://flashii.net/forum$request_uri;
  177. 177
    }