環(huán)境說(shuō)明 ZLMediaKit編譯需要的軟件 visual studio[https://visualstudio.microsoft.com/zh-hans/downloa...
博主,請(qǐng)教一個(gè)問(wèn)題。我是需要nginx代理到senty,實(shí)現(xiàn)瀏覽器通過(guò)https://192.168.201.3代理到http://192.168.201.3:9000,我的配置如下
```
server {
listen 443 ssl;
server_name 192.169.210.3;
location / {
proxy_pass http://localhost:9000;
}
}
```
然后dns配置如下
```
dsn: 'https://0b06bb09522c406db87765fc44e0f4e6@192.168.201.3/2',
```
這樣代理的話,無(wú)論訪問(wèn)它的后臺(tái)管理系統(tǒng),還是上傳報(bào)錯(cuò)接口都是OK的,但是我們的location不單單是一個(gè),因此需要https://192.168.201.3/sentry代理到http://192.168.201.3:9000, 我的配置是
```
server {
listen 443 ssl;
server_name 192.169.210.3;
location ~/sentry {
proxy_pass http://localhost:9000;
}
}
```
dsn
```
dsn: 'https://0b06bb09522c406db87765fc44e0f4e6@192.168.201.3/sentry/2',
```
雖然跳轉(zhuǎn)到登錄是正確的,但是返回其他頁(yè)面有些出錯(cuò)404,特別是上傳報(bào)錯(cuò)接口403
```
CSRF Verification Failed
A required security token was not found or was invalid.
If you're continually seeing this issue, try the following:
Clear cookies (at least for Sentry's domain).
Reload the page you're trying to submit (don't re-submit data).
Re-enter the information, and submit the form again.
Read more about CSRF on Wikipedia.
```
請(qǐng)問(wèn)有什么辦法嗎
基于Sentry搭建一個(gè)前端異常監(jiān)控系統(tǒng)背景 雖然在我們的項(xiàng)目上線前會(huì)有很多的測(cè)試流程,但是測(cè)試流程肯定無(wú)法保證 100%覆蓋所有操作場(chǎng)景,在用戶的使用過(guò)程中仍會(huì)有一些問(wèn)題暴露出來(lái)。但當(dāng)線上用戶出現(xiàn)問(wèn)題,我們需要收...
準(zhǔn)備相關(guān)軟件 jenkins:中文網(wǎng)[https://www.jenkins.io/zh/download/] 英文網(wǎng)[https://www.jenkins.io/dow...
到這里下載jenkins.war 在jenkins中Manage Jenkins->System Information->executable-war得到地址為 把下載的文...
案例一父組件parent.vue 子組件child.vue 上面按照這里的解析,子組件的html中的{{childData}}的值會(huì)隨著父組件的值而改變,但是created里...