Tech WG/Ops Diary: Difference between revisions

2 bytes removed ,  20:47, 9 July 2023
testing code blocks -- somethings up with the syntax
(added nginx reload command and corrected a type)
(testing code blocks -- somethings up with the syntax)
Line 165: Line 165:
|Text=[[Tech WG/Ops Diary#23-07-09]]: Updating reverse proxy config to the recommended one
|Text=[[Tech WG/Ops Diary#23-07-09]]: Updating reverse proxy config to the recommended one
as root
as root
`cd /etc/nginx
 
cd /etc/nginx
cd sites-enabled
cd sites-enabled
vim mastodon `
vim mastodon


search for "system"
search for "system"
added the following two headers in that block as per the release notes:
added the following two headers in that block as per the release notes:
`add_header X-Content-Type-Options nosniff;
`add_header X-Content-Type-Options nosniff;
  add_header Content-Security-Policy "default-src 'none'; form-action 'none'"; `
  add_header Content-Security-Policy "default-src 'none'; form-action 'none'";`


save
save
test nginx configs are valid or not (w/o running)
test nginx configs are valid or not (w/o running)
`nginx -t `
 
`nginx -t`


all looked good
all looked good
`nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
`nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful `
nginx: configuration file /etc/nginx/nginx.conf test is successful`
 
Reload nginx
Reload nginx
`nginx reload `
`nginx reload`
|Link=https://discord.com/channels/1049136631065628772/1052452072806686751/1127760004980691054
|Link=https://discord.com/channels/1049136631065628772/1052452072806686751/1127760004980691054
}}
}}