154 Commits

Author SHA1 Message Date
79dc116c44 Update README.md 2024-06-10 13:16:25 +00:00
238da55f2d Update README.md 2024-03-26 08:46:42 +00:00
05bcfe1872 Update install_mailhog_as_service.sh 2024-02-19 11:40:51 +00:00
e1d434c33a Update README.md 2024-02-02 11:45:53 +00:00
d9872bd6b5 Update README.md 2024-02-02 11:45:09 +00:00
22b55fa5c7 Update README.md 2024-02-02 11:43:43 +00:00
dbd5a48bab mailcatcher losgemaakt van testserver 2024-02-02 12:12:15 +01:00
c3e510c873 Update testserver_o2b/__manifest__.py 2024-01-12 15:17:03 +00:00
74b570d94c Update testserver_o2b/views/views.xml 2024-01-12 15:16:16 +00:00
2015495a75 Delete testserver_o2b/security/ir.model.access.csv 2024-01-12 15:14:40 +00:00
51502abe2a Update testserver_o2b/models/init_test.py 2024-01-12 15:14:18 +00:00
4727d65c44 Update testserver_o2b/models/init_test.py 2023-12-18 13:11:40 +00:00
d06bc121fc Update testserver_o2b/models/init_test.py 2023-12-18 13:08:40 +00:00
c8b5df4719 Update testserver_o2b/models/init_test.py 2023-12-18 12:57:59 +00:00
c25489fd8c Update testserver_o2b/models/init_test.py
Added report.url to ir_config_parameter
2023-12-12 12:27:50 +00:00
77aaf76c67 Update file views.xml 2023-11-13 08:14:01 +00:00
8b34d391f4 Update file views.xml 2023-11-06 11:59:10 +00:00
4b9f44d9d9 Update file views.xml 2023-11-06 11:51:04 +00:00
493b2b7776 Update file views.xml 2023-11-06 11:41:34 +00:00
d8a1581a64 Update file views.xml 2023-11-06 11:38:39 +00:00
e36cab7b7a Update file views.xml 2023-11-06 11:37:00 +00:00
74ae964ee3 Update file views.xml 2023-11-06 11:35:02 +00:00
b7e35e150b Update file init_test.py 2023-11-06 10:00:44 +00:00
c71ffa1b2e Update file init_test.py 2023-11-06 09:59:05 +00:00
4e943dd168 Update file init_test.py 2023-11-06 09:58:23 +00:00
cbe118244d Update file views.xml 2023-11-06 09:55:16 +00:00
a437969661 Update file init_test.py 2023-11-06 09:51:57 +00:00
61315206c2 Update file init_test.py 2023-11-06 09:49:32 +00:00
39d7366811 Update file views.xml 2023-11-06 09:34:24 +00:00
f02e4f4dbc Update file init_test.py 2023-11-06 09:32:14 +00:00
87a90da4c5 Update file init_test.py 2023-11-06 09:28:52 +00:00
91431d54e2 Update file init_test.py 2023-11-06 09:27:26 +00:00
9ed33ccaff Update file init_test.py 2023-11-06 09:25:43 +00:00
8f04dcfd23 Update file init_test.py 2023-11-06 09:22:36 +00:00
d0c1327bf9 Update file init_test.py 2023-11-06 09:21:00 +00:00
3124f9470b Update file init_test.py 2023-11-06 09:09:50 +00:00
52a384f48c Update file init_test.py 2023-11-06 09:07:23 +00:00
2ab979c047 Update file init_test.py 2023-11-06 09:05:58 +00:00
76cb53ec67 Update file init_test.py 2023-11-06 09:01:40 +00:00
582b1a89c6 Update file init_test.py 2023-11-06 08:57:41 +00:00
c853b0b64f Update file init_test.py 2023-11-06 08:54:59 +00:00
1cf19d3671 Update file init_test.py 2023-11-06 08:52:47 +00:00
86e52ca4c5 Update file init_test.py 2023-11-06 08:52:08 +00:00
13d1a06291 Update file init_test.py 2023-11-06 08:51:13 +00:00
defe0b60ba Update file init_test.py 2023-11-06 08:49:48 +00:00
042d8f279d Update 2 files
- /testserver_o2b/models/init_test.py
- /testserver_o2b/views/views.xml
2023-11-06 08:47:03 +00:00
5683efd3a9 Update install_mailhog_as_service.sh 2023-11-03 16:21:13 +00:00
453c5036dc Update file views.xml 2023-11-01 22:25:31 +00:00
24349d4b5e Update file views.xml 2023-11-01 22:24:14 +00:00
bd44e351f7 Update file views.xml 2023-11-01 22:21:02 +00:00
8b1f118696 Update file views.xml 2023-11-01 22:19:57 +00:00
85d38286ac Update file views.xml 2023-11-01 22:15:21 +00:00
96509c8125 Update file views.xml 2023-11-01 22:11:13 +00:00
91424ea3c8 Update file views.xml 2023-11-01 22:07:45 +00:00
2fe6c58b9f Update file views.xml 2023-11-01 22:06:23 +00:00
7c17b1c4fb Update file views.xml 2023-11-01 22:05:13 +00:00
935d53db7c Update file views.xml 2023-11-01 22:04:02 +00:00
2afcef67b9 Update file views.xml 2023-11-01 22:03:30 +00:00
dc57ad9717 Update file views.xml 2023-11-01 21:58:42 +00:00
1427dd8422 Update file views.xml 2023-11-01 21:54:17 +00:00
10be7ec119 Update file views.xml 2023-11-01 21:53:22 +00:00
81a07d8d0d Update file views.xml 2023-11-01 21:46:11 +00:00
34021d7ed3 Update file views.xml 2023-11-01 21:38:29 +00:00
d47fe6039e Update file views.xml 2023-11-01 21:34:32 +00:00
9618a28464 Update file views.xml 2023-11-01 21:33:24 +00:00
507392261d Update file views.xml 2023-11-01 21:29:57 +00:00
2960ed7dfb Update file views.xml 2023-11-01 21:27:54 +00:00
7817d8b2ea Update file views.xml 2023-11-01 21:23:12 +00:00
bb7824ef1b Update file ir.model.access.csv 2023-11-01 21:21:16 +00:00
6d647d11bb Update file ir.model.access.csv 2023-11-01 21:20:32 +00:00
8b1905a23b Update file ir.model.access.csv 2023-11-01 21:19:28 +00:00
ab1c00f625 Update file ir.model.access.csv 2023-11-01 21:18:19 +00:00
c166b55227 Update file ir.model.access.csv 2023-11-01 21:17:27 +00:00
8f4ad7f5c6 Update 2 files
- /testserver_o2b/__manifest__.py
- /testserver_o2b/security/ir.model.access.csv
2023-11-01 21:15:59 +00:00
96e2076831 Update file ir.model.access.csv 2023-11-01 21:12:06 +00:00
f0e269926e Update file ir.model.access.csv 2023-11-01 21:08:07 +00:00
207a206a65 Update file ir.model.access.csv 2023-11-01 21:05:47 +00:00
99f11868a2 Update file ir.model.access.csv 2023-11-01 21:04:14 +00:00
ba39e52800 Update file ir.model.access.csv 2023-11-01 21:02:10 +00:00
f76a7c3852 Update file ir.model.access.csv 2023-11-01 20:58:44 +00:00
2568640bef Update file views.xml 2023-11-01 20:51:30 +00:00
a92ff85ca8 Update 2 files
- /testserver_o2b/security/ir.model.access.csv
- /testserver_o2b/views/views.xml
2023-11-01 20:47:44 +00:00
55812f17aa Update file views.xml 2023-11-01 20:43:16 +00:00
d10467f62c Update file init_test.py 2023-11-01 20:41:55 +00:00
16822d627b Update file views.xml 2023-11-01 11:46:19 +00:00
c6a84edacb Update file views.xml 2023-11-01 11:43:33 +00:00
4dd4418308 Update file views.xml 2023-11-01 11:40:19 +00:00
d1e5c46202 Update file views.xml 2023-11-01 11:37:02 +00:00
aa640a837a Update file views.xml 2023-11-01 11:35:28 +00:00
9a11148be3 Update file views.xml 2023-11-01 11:33:07 +00:00
8cbac541a8 Update file views.xml 2023-11-01 11:31:42 +00:00
a1b4887b77 Update file views.xml 2023-11-01 11:29:27 +00:00
c800175a35 Update file views.xml 2023-11-01 11:27:57 +00:00
900b66b54b Update file views.xml 2023-11-01 11:25:15 +00:00
bf4425a16d Update file views.xml 2023-11-01 11:14:14 +00:00
c9836b5eb0 Update file views.xml 2023-11-01 11:13:02 +00:00
79da5a2b68 Update file views.xml 2023-11-01 11:12:01 +00:00
7fc884523c Update file views.xml 2023-11-01 11:10:01 +00:00
485a2817d9 Update file views.xml 2023-11-01 11:06:44 +00:00
8993814d29 Update file views.xml 2023-11-01 11:02:34 +00:00
a480cd746a Update file views.xml 2023-11-01 11:00:55 +00:00
51b2311872 Update file views.xml 2023-11-01 10:57:37 +00:00
0f69ad235f Update file views.xml 2023-11-01 10:55:59 +00:00
49ab8024a5 Update file views.xml 2023-11-01 10:53:39 +00:00
489f106354 Update file views.xml 2023-11-01 10:50:24 +00:00
69acbfe981 Update file views.xml 2023-11-01 10:49:25 +00:00
62c5cc80e7 Update file views.xml 2023-11-01 10:45:34 +00:00
0f8621aa01 Update file views.xml 2023-11-01 10:43:16 +00:00
a26c56aafb Update file views.xml 2023-11-01 10:38:33 +00:00
a095160208 Update file init_test.py 2023-10-30 22:19:10 +00:00
4652f544f4 Update file init_test.py 2023-10-30 22:14:51 +00:00
d9746a0b7e Update file init_test.py 2023-10-30 22:12:04 +00:00
727b27a53f Update file init_test.py 2023-10-30 22:10:15 +00:00
ac690a4018 Update file init_test.py 2023-10-30 21:59:09 +00:00
cef6dab234 Update file install_mailhog_as_service.sh 2023-10-30 21:52:39 +00:00
4ec07aa8f0 Update 2 files
- /testserver.sh
- /install_mailhog_as_service.sh
2023-10-30 21:47:16 +00:00
30e35be0a8 Update file init_test.py 2023-10-30 21:19:03 +00:00
f68b586206 Update file init_test.py 2023-10-30 21:11:34 +00:00
61bc5bcd64 Update file init_test.py 2023-10-30 21:10:18 +00:00
72b3b6870e Update file init_test.py 2023-10-30 21:08:16 +00:00
c2e0ae6d56 Update file init_test.py 2023-10-30 21:07:14 +00:00
70bb9bb350 Update file init_test.py 2023-10-30 21:03:34 +00:00
e0df294c7e Update file init_test.py 2023-10-30 21:01:28 +00:00
d71181d492 Update file init_test.py 2023-10-30 20:59:48 +00:00
4d795a837c Update file init_test.py 2023-10-30 20:55:32 +00:00
90f135fffa Update file init_test.py 2023-10-30 20:53:43 +00:00
c76920ff06 Update file init_test.py 2023-10-30 20:51:47 +00:00
cc4a2a9c6c Update file init_test.py 2023-10-30 20:50:11 +00:00
5b2b6b257e Update file init_test.py 2023-10-30 20:48:00 +00:00
479233a643 Update file init_test.py 2023-10-30 20:45:30 +00:00
ef2cea6fb1 Update file init_test.py 2023-10-30 20:38:45 +00:00
97c5a356fa Update file init_test.py 2023-10-30 20:35:59 +00:00
ead437df70 Update file init_test.py 2023-10-30 20:28:22 +00:00
bf3b88515c Update 2 files
- /testserver_o2b/models/init_test.py
- /testserver.sh
2023-10-30 20:19:54 +00:00
9cc86be67c Update file init_test.py 2023-10-30 20:12:52 +00:00
51a37f30c0 Update file init_test.py 2023-10-30 20:07:36 +00:00
4320071cb4 Update file init_test.py 2023-10-30 20:06:37 +00:00
a14c779a1d Update file init_test.py 2023-10-30 19:57:49 +00:00
fdb33f9536 Update file init_test.py 2023-10-30 19:50:41 +00:00
3059fb99d5 Update file init_test.py 2023-10-30 19:48:06 +00:00
8765d5b4ad Update file init_test.py 2023-10-30 19:43:12 +00:00
da11d7281f Update file init_test.py 2023-10-30 19:38:24 +00:00
9321201877 Update file __manifest__.py 2023-10-30 19:29:17 +00:00
d9c742ba5d Update init_test.py 2023-10-30 19:26:06 +00:00
cce9695591 Update init_test.py 2023-10-30 19:12:04 +00:00
2829bafb31 Update testserver.sh 2023-10-05 11:48:10 +00:00
c9ee6f74bd Update testserver.sh 2023-10-05 11:07:02 +00:00
3ff5bdf970 Merge branch 'f20963' into '15.0'
Update init_test.py

See merge request open2bizz/testserver!3
2023-07-21 14:40:21 +00:00
c502e9392e Update init_test.py 2023-07-21 14:26:23 +00:00
4c701d97e9 Update init_test.py 2023-07-03 15:05:22 +00:00
7738f5b1bf Update init_test.py 2023-07-03 15:01:00 +00:00
b37439c4f0 Update init_test.py (ip-adres aangepast) 2023-02-07 14:07:15 +00:00
566354fce2 Check op account_journal, anders werkt query niet 2022-08-22 09:11:21 +02:00
ff1a85030f 1e versie testserver module 2022-08-03 15:13:02 +02:00
2 changed files with 159 additions and 64 deletions

166
README.md
View File

@@ -1,92 +1,130 @@
# Testserver
Module die zoveel mogelijk instellingen/configuratie voor een testomgeving zet.
## Getting started
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
## Add your files
- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
# Mailcatcher Testserver
## Mailhog installeren
```
cd existing_repo
git remote add origin https://gitlab.com/open2bizz/testserver.git
git branch -M main
git push -uf origin main
chmod +x install_mailhog_as_service.sh
./install_mailhog_as_service.sh
```
## Integrate with your tools
## Workaround bij foutmelding in Ubuntu 22.04: "note: module requires Go 1.20"
```
- Download gewenste versie van Go:
wget -c https://go.dev/dl/go1.22.0.linux-amd64.tar.gz
- [ ] [Set up project integrations](https://gitlab.com/open2bizz/testserver/-/settings/integrations)
- Ga naar de map waar het bestand staat en pak het uit:
sudo tar -C /usr/local/ -xzf go1.22.0.linux-amd64.tar.gz
## Collaborate with your team
- Set PATH Environment Variable
export PATH=$PATH:/usr/local/go/bin
- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
- [ ] [Automatically merge when pipeline succeeds](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
- Voeg onderstaande code toe aan .profile om het definitief te maken:
# set PATH so it includes /usr/local/go/bin if it exists
if [ -d "/usr/local/go/bin" ] ; then
PATH="/usr/local/go/bin:$PATH"
fi
## Test and Deploy
- reload .profile (let op: mét punt!)
. ~/.profile
Use the built-in continuous integration in GitLab.
- Controleer welke versie van Go actief is:
go version
- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing(SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
- Installeer nu Mailhog met het installatie script
```
***
## Na de installatie
```
systemctl enable mailhog
```
reboot server
# Editing this README
When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thank you to [makeareadme.com](https://www.makeareadme.com/) for this template.
Nginx configuratie (gebruik template: xxx.BEWAREN.mailcatcher.open2bizz.com.conf)
## Suggestions for a good README
Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
```
server {
listen 8025;
server_name 434-mailcatcher.staging.open2bizz.com;
## Name
Choose a self-explaining name for your project.
# log
access_log /var/log/nginx/434.access.log;
error_log /var/log/nginx/434.error.log;
## Description
Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
gzip_types text/css text/less text/plain text/xml application/xml application/json application/javascript;
gzip on;
## Badges
On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
## Visuals
Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
location / {
#kantoor Open2bizz 83.84.200.111
allow 83.84.200.111;
allow 83.82.145.237;
allow 45.132.40.125;
allow 86.93.238.87;
allow 80.114.214.241;
allow 94.157.36.155;
allow 145.131.221.238;
deny all;
## Installation
Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
auth_basic "Administrator Area";
auth_basic_user_file /etc/nginx/.htpasswd;
## Usage
Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
proxy_redirect off;
proxy_pass http://192.168.78.134:8025;
}
## Support
Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
#error pages
error_page 500 501 502 503 504 https://www.open2bizz.tech/503;
## Roadmap
If you have ideas for releases in the future, it is a good idea to list them in the README.
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/434-mailcatcher.staging.open2bizz.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/434-mailcatcher.staging.open2bizz.com/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
```
## Contributing
State if you are open to contributions and what your requirements are for accepting them.
For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
In de nginx config file een wachtwoord opnemen:
```
## Authors and acknowledgment
Show your appreciation to those who have contributed to the project.
========================================================
Voorbeeld:
In de nginx config file voor omgeving 499 een wachtwoord instellen:
========================================================
auth_basic "Administrator Area";
auth_basic_user_file /etc/nginx/.htpasswd-499;
========================================================
Voor iedere omgeving is op de 401 een aparte .htpasswd aangemaakt in de map /etc/nginx/
Voor alle test-omgevingen in de reeks 402 en 499 is een bestand aangemaakt.
Om een nieuw htpasswd te maken (bijvoorbeeld in de 500-reeks) kan het beste een bestaande file gekopieerd worden:
cp /etc/nginx/.htpasswd-402 /etc/nginx/.htpasswd-499
Om al de (verborgen) .htpasswd bestanden opvragen:
ls -rtla /etc/nginx | grep .htpasswd
Een .htpasswd kan bekeken worden met nano, maar je ziet dan alleen de user én het encrypte wachtwoord:
nano /etc/nginx/.htpasswd-499
Om een nieuw wachtwoord in te stellen voor de user 'mail' voor omgeving 499:
htpasswd /etc/nginx/.htpasswd-499 mail
=================================================
Om de wijzigingen toe te passen moet nginx herstart worden:
service nginx restart
=================================================
```
## ODOO: Menu maken voor Mailcatcher
Maak een Menu aan met de naam Mailcatcher
Hang deze aan de groep 'Internal User'
Action: ir.actions.act_url => Thirdparty apps
Klik door op 'Thirdparty apps' en verwijs de action URL naar de in nginx opgegeven naam (bijv: https://426-mailcatcher.staging.open2bizz.com/)
Zet het target op New Window
## License
For open source projects, say how it is licensed.
## Project status
If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.

View File

@@ -0,0 +1,57 @@
#!/bin/bash
echo "";
echo "===================================";
echo "Install golang-go...";
echo "===================================";
apt-get -y install golang-go;
if [ $? == 0 ] ; then
echo 'golang-go installed'
else
echo 'ERROR: Installing golang-go NOT succesfull!'
exit
fi
echo "";
echo "===================================";
echo "Installing mailhog...";
echo "===================================";
go install github.com/mailhog/MailHog@latest;
if [ $? == 0 ] ; then
echo "";
echo "===================================";
echo "Mailcatcher installed succesfully!";
echo "===================================";
echo "";
else
echo 'ERROR: Installing Mailcatcher NOT succesfull!'
exit
fi
echo "===================================";
echo "Copy Mailhog to bin...";
echo "===================================";
sudo cp ~/go/bin/MailHog /usr/local/bin/MailHog
if [ $? == 0 ] ; then
echo 'Mailhog copied'
else
echo 'ERROR: Copy Mailhog NOT succesfull!'
exit
fi
echo "";
echo "===================================";
echo "Create MailHog service...";
echo "===================================";
sudo tee /etc/systemd/system/mailhog.service <<EOL
[Unit]
Description=MailHog
After=network.target
[Service]
User=root
ExecStart=/usr/bin/env /usr/local/bin/MailHog > /dev/null 2>&1 &
[Install]
WantedBy=multi-user.target
EOL
systemctl enable mailhog
systemctl start mailhog
echo "";
echo "===================================";
echo "Mailhog service created and started.";
echo "===================================";