@@ -190,10 +190,43 @@ To get information about server, use the following,
190190When debugging third-party integrations such as Oauth, payments, etc., you need to have a public ip or domain
191191to forward public requests to the development machine for debugging.
192192
193- * Temporarily with ssh - ` ssh -R 9988:127.0.0.1 :8080 user@remote `
193+ * Temporarily with ssh - ` ssh -R 9988:localhost :8080 user@remote `
194194* persistent with frp - < https://gofrp.org/docs/ >
195195* Simple with netapp - < https://natapp.cn/ >
196196
197+ take local.moilioncircle.com for example, use ssh + nginx to forward
198+
199+ * local port 8080
200+ * public domain local.moilioncircle.com
201+ * public port 9988, also http(80), 443 https(443)
202+ * forward request from public to localhost:8080
203+
204+ ``` nginx
205+ # ssh -R 9988:localhost:8080 ubuntu@local.moilioncircle.com
206+ server {
207+ listen 80;
208+ listen 443 ssl;
209+ server_name local.moilioncircle.com;
210+
211+ access_log /data/logs/nginx/local.moilioncircle.com-access.log;
212+ error_log /data/logs/nginx/local.moilioncircle.com-error.log;
213+
214+ ssl_certificate /data/nginx/cert/moilioncircle.com/fullchain.pem;
215+ ssl_certificate_key /data/nginx/cert/moilioncircle.com/privkey.pem;
216+
217+ location / {
218+ proxy_pass http://127.0.0.1:9988;
219+ proxy_http_version 1.1;
220+ proxy_cache_bypass $http_upgrade;
221+ proxy_set_header Upgrade $http_upgrade;
222+ proxy_set_header Connection $http_connection;
223+ proxy_set_header Host localhost;
224+ proxy_set_header X-Real-IP $remote_addr;
225+ proxy_redirect http:// $scheme://;
226+ }
227+ }
228+ ```
229+
197230## 0D.09.IDEA Hits Component/Scanned
198231
199232When importing the Wings project, IDEA cannot be able to handle the WingsAutoConfiguration in spring.factories,
@@ -222,8 +255,8 @@ at org.jooq.impl.AbstractQuery.execute(AbstractQuery.java:390)
222255## 0D.11.` Input length = 1 ` Error
223256
224257``` text
225- Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources
226- (default-resources) on project xxx-common: Input length = 1
258+ Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources
259+ (default-resources) on project xxx-common: Input length = 1
227260```
228261
229262The reason is that there are non-text files (not readable by string) in the filter directory of the maven-resources-plugin.
@@ -681,3 +714,21 @@ so, when handling async/future tasks, interrupt, cancel and shutdown need to be
681714
682715* Tolerant of loss, await-termination=false
683716* Recoverable, await-termination=true, actively interrupt or cancel
717+
718+ ## 0D.42.Git fixup commit
719+
720+ ``` bash
721+ git log --oneline -n 5 | cat -n # check commit history
722+ # 1 86f226c 📝 changelog of 337, 346
723+ # 2 0fccb54 ✨ ssh+nginx to test Oauth
724+ # 3 32d98bc 📝 changelog of 301.741
725+ # 4 fb31cf0 📝 semver detail meaning
726+ # 5 0fb5232 📝 typo Wings TerminalContext
727+ git add . # add all changes
728+ git status # check changes
729+
730+ # # fixup by hash or ^4
731+ git commit --fixup=fb31cf0 # HEAD^4
732+ git rebase -i --autosquash fb31cf0^ # HEAD^5
733+ git push -f
734+ ```
0 commit comments